OSDN Git Service

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)
commit0d6030ac041f6835974deb88a1a9c299b4adc3ad
treee1dee689fd594ddce0cb05c5b399805aaa699142
parent3ec7cb369eb22a5a06f9867e358bc55d40055168
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