summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/Kconfig
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2018-07-14 14:42:00 +0200
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-07-18 16:44:03 +0200
commit89fd23efa0d7934ed9ec93c77486a047759d6543 (patch)
tree11b41cd18ba7b52650af60dfa380ec27c165594e /drivers/mtd/Kconfig
parent5f7a01e222635cba7e4889ad4ebd891835e8b2eb (diff)
downloadlinux-89fd23efa0d7934ed9ec93c77486a047759d6543.tar.bz2
mtd: Fallback to ->_read/write() when ->_read/write_oob() is missing
Some MTD sublayers/drivers are implementing ->_read/write() and not ->_read/write_oob(). While for NAND devices both are usually valid, for NOR devices, using the _oob variant has no real meaning. But, as the MTD layer is supposed to hide as much as possible the flash complexity to the user, there is no reason to error out while it is just a matter of rewritting things internally. Add a fallback on mtd->_read() (resp. mtd->_write()) when the user calls mtd_read_oob() (resp. mtd_write_oob()) while mtd->_read_oob() (resp. mtd->_write_oob) is not implemented. There is already a fallback on the _oob variant if the former is used. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'drivers/mtd/Kconfig')
0 files changed, 0 insertions, 0 deletions