]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 09:57:40 +0000 (11:57 +0200)
commit10a4afad09387e4aee4db0624d3e93aa210fb156
tree643fc3617701bc0a347823257e5d206597d055a8
parent10089a778457353052c9d860983f6a6d2ce4cfe7
mtd: rawnand: pl353: Set the nand chip node as the flash node

BugLink: https://bugs.launchpad.net/bugs/1969110
[ Upstream commit a1fe2ace2c39dcdc7c053705459a73b7598b1e4f ]

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: 08d8c62164a3 ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 2c4de9b9422798e204bd8680f38b9024ab299400)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/mtd/nand/raw/pl35x-nand-controller.c