mtd: nand: Add a NAND page I/O request type
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 30 Sep 2025 00:20:48 +0000 (03:20 +0300)
committerMichael Trimarchi <michael@amarulasolutions.com>
Sun, 5 Oct 2025 18:25:47 +0000 (20:25 +0200)
commit9ce01e0ada33962f41f725a4ae9c2a39c87e95b4
tree3e4ba2d0cc62ebdb6e7ece2504d8635af6bd1141
parentaecd0bd41237ef0a8852683c848865d514de3fa5
mtd: nand: Add a NAND page I/O request type

Use an enum to differentiate the type of I/O (reading or writing a
page). Also update the request iterator.

This is a port of linux commit
701981cab016 ("mtd: nand: Add a NAND page I/O request type")

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/linux-mtd/20200827085208.16276-5-miquel.raynal@bootlin.com
Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu> # U-Boot port
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
drivers/mtd/nand/spi/core.c
include/linux/mtd/nand.h