]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: arasan: Update NAND bus clock instead of system clock
authorAmit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com>
Tue, 28 Jun 2022 15:48:23 +0000 (21:18 +0530)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 29 Jun 2022 11:36:33 +0000 (13:36 +0200)
commit5e44beb04b824228e467c17de160b67297b3a463
tree310641e8f011af6e8346429381a926b614852604
parent835791a5128972f97712f85ddc945d001c8a1c97
mtd: rawnand: arasan: Update NAND bus clock instead of system clock

In current implementation the Arasan NAND driver is updating the
system clock(i.e., anand->clk) in accordance to the timing modes
(i.e., SDR or NVDDR). But as per the Arasan NAND controller spec the
flash clock or the NAND bus clock(i.e., nfc->bus_clk), need to be
updated instead. This patch keeps the system clock unchanged and updates
the NAND bus clock as per the timing modes.

Fixes: c92973384569 ("mtd: rawnand: arasan: Add new Arasan NAND controller")
CC: stable@vger.kernel.org # 5.8+
Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220628154824.12222-2-amit.kumar-mahapatra@xilinx.com
drivers/mtd/nand/raw/arasan-nand-controller.c