]> 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)
commitd88c4aff6db0e559a54ab6b5b48033071717fbb9
tree61568a8c8ddd9a22a48435a3ab81a1c4fcac296b
parente9aad66f36542d088c22ca3836d79e447ef5fdbf
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: db433fe25791 ("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