]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: Fallback to ->_read/write_oob() when ->_read/write() is missing
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 16 Aug 2018 15:29:59 +0000 (17:29 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 20 Sep 2018 14:40:49 +0000 (20:10 +0530)
commitf977b766f24822015c5cf2567fd55df2158e83c1
tree708e52652249bde2ac7471cb8613eb2ff28e5d0a
parenta99781216a4bd650a16d25e735300d8bcb21bed1
mtd: Fallback to ->_read/write_oob() when ->_read/write() is missing

Some MTD sublayers/drivers are implementing ->_read/write_oob() and
provide dummy wrappers for their ->_read/write() implementations.
Let the core handle this case instead of duplicating the logic.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Acked-by: Brian Norris <computersforpeace@gmail.com>
Reviewed-by: Miquel Raynal <miquel.raynal@free-electrons.com>
Tested-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/mtd/mtdcore.c
drivers/mtd/mtdpart.c
drivers/mtd/nand/nand_base.c
drivers/mtd/onenand/onenand_base.c