Boris Brezillon 4a78cc644e mtd: nand: Make sure drivers not supporting SET/GET_FEATURES return -ENOTSUPP
A lot of drivers are providing their own ->cmdfunc(), and most of the
time this implementation does not support all possible NAND operations.
But since ->cmdfunc() cannot return an error code, the core has no way
to know that the operation it requested is not supported.

This is a problem we cannot address for all kind of operations with the
current design, but we can prevent these silent failures for the
GET/SET FEATURES operation by overloading the default
->onfi_{set,get}_features() methods with one returning -ENOTSUPP.

Reported-by: Chris Packham <Chris.Packham@alliedtelesis.co.nz>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Tested-by: Chris Packham <Chris.Packham@alliedtelesis.co.nz>
2017-05-30 08:59:26 +02:00
..
2015-05-27 12:42:16 -07:00
2016-01-26 10:27:33 -08:00
2017-05-11 10:44:22 -07:00
2014-01-20 11:55:23 -08:00
2016-01-26 10:27:34 -08:00
2014-05-28 00:05:23 -07:00
2013-04-05 13:02:40 +01:00
2013-04-05 13:02:33 +01:00
2014-04-18 16:40:08 -07:00