]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: Fix timing setup for NANDs that do not support SET FEATURES
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 31 Jul 2017 08:29:56 +0000 (10:29 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 2 Aug 2017 08:26:41 +0000 (10:26 +0200)
commit0cfb83a69593cb5eab4ba26d3cbaafddda7d09d0
tree61568a8c8ddd9a22a48435a3ab81a1c4fcac296b
parentc104af193d81188110bbb4357f08215f1ed24be1
mtd: nand: Fix timing setup for NANDs that do not support SET FEATURES

Some ONFI NANDs do not support the SET/GET FEATURES commands, which,
according to the spec, is perfectly valid.

On these NANDs we can't set a specific timing mode using the "timing
mode" feature, and we should assume the NAND does not require any setup
to enter a specific timing mode.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Fixes: d390d6ec7cd5 ("mtd: nand: automate NAND timings selection")
Reported-by: Alexander Dahl <ada@thorsis.com>
Cc: <stable@vger.kernel.org>
Tested-by: Alexander Dahl <ada@thorsis.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/nand_base.c