]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: Expose _notsupp() helpers for raw page accessors
authorBoris Brezillon <boris.brezillon@bootlin.com>
Wed, 18 Jul 2018 08:42:17 +0000 (10:42 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 19 Jul 2018 21:14:57 +0000 (23:14 +0200)
commit36e399d290a3e55dd581a071c8329be3d3585b49
treee1dee689fd594ddce0cb05c5b399805aaa699142
parent47314391476cb9e3b42b1c36d23649d52e037e56
mtd: rawnand: Expose _notsupp() helpers for raw page accessors

Some implementations simply can't disable their ECC engine. Expose
helpers returning -ENOTSUPP so that the caller knows that raw accesses
are not supported instead of silently falling back to non-raw
accessors.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/nand_base.c
include/linux/mtd/rawnand.h