]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: rawnand: atmel: Defer probe if SRAM is missing
authorRob Herring (Arm) <robh@kernel.org>
Mon, 5 Jan 2026 21:06:43 +0000 (15:06 -0600)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 19 Jan 2026 10:20:42 +0000 (11:20 +0100)
commit5f68fb7ead5c39d03bab98d5bcb1ddba9ca51b2d
treec0e3417909ff4e1fd3a997865f1bd234d9c293e4
parentaa8cb72c2018c72b9c2fe5a8e55d530db3bc757e
mtd: rawnand: atmel: Defer probe if SRAM is missing

The Atmel NAND controller driver depends on an SRAM pool and has an
implicit assumption that the SRAM pool has already been created.
Changing the initcall ordering can break this. Unfortunately, fw_devlink
can't save us here as there's not a standard property to track the
dependency. So it's up to deferring probe to save us.

Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Tested-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/atmel/nand-controller.c