]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
MIPS/mtd: Handle READY GPIO in generic NAND platform data
authorLinus Walleij <linusw@kernel.org>
Sat, 28 Mar 2026 15:55:48 +0000 (16:55 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 13 Apr 2026 13:41:56 +0000 (15:41 +0200)
commit15513eefac7ca68602e9de9853f5e671bf7b4eef
tree4e0eaaff715c039e7bce0b6f6f3fb7b1f483dc23
parent42671e9c1e40032f982d2163ba4867dc85e23832
MIPS/mtd: Handle READY GPIO in generic NAND platform data

The callbacks into the MIPS RB532 platform to read the GPIO pin
indicating that the NAND chip is ready are oldschool and does
not assign GPIOs as properties to the NAND device.

Add a capability to the generic platform NAND chip driver to use
a GPIO line to detect if a NAND chip is ready and override the
platform-local drv_ready() callback with this check if the GPIO
is present.

This makes it possible to drop the legacy include header
<linux/gpio.h> from the RB532 devices.

Signed-off-by: Linus Walleij <linusw@kernel.org>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/rb532/devices.c
drivers/mtd/nand/raw/plat_nand.c