]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: pl353: Set the nand chip node as the flash node
authorAmit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com>
Wed, 9 Feb 2022 05:34:27 +0000 (11:04 +0530)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 18 Feb 2022 14:14:58 +0000 (15:14 +0100)
commitbeb18a00367201ae039d41cec93b28d6a5b9501c
treee81f1da08639ecbb0a5a84ea7421f86b3fad9dea
parentac9ff9cff999ca777c2e4a01d4bcfa559b55bafe
mtd: rawnand: pl353: Set the nand chip node as the flash node

In devicetree the flash information is embedded within nand chip node,
so during nand chip initialization the nand chip node should be passed
to nand_set_flash_node() api, instead of nand controller node.

Fixes: be2e647f1639 ("mtd: rawnand: pl353: Add support for the ARM PL353 SMC NAND controller")
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/20220209053427.27676-1-amit.kumar-mahapatra@xilinx.com
drivers/mtd/nand/raw/pl35x-nand-controller.c