]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: reintroduce NAND_NO_READRDY as NAND_NEED_READRDY
authorBrian Norris <computersforpeace@gmail.com>
Wed, 13 Mar 2013 16:51:31 +0000 (09:51 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 14 Mar 2013 12:48:54 +0000 (12:48 +0000)
commita975c80ab934504177dd798be298028e6e4a7901
tree0ce80c4e6559c939c2eaf86c76950b177c4c157a
parent8747102d4c1b287c7d320c05ca41bf591a84ea01
mtd: nand: reintroduce NAND_NO_READRDY as NAND_NEED_READRDY

This partially reverts commit 787321e4ebb3053e9c60fcc64eec24688752447a
("mtd: nand: kill NAND_NO_READRDY").

In that patch I overlooked a few things.

The original documentation for NAND_NO_READRDY included "True for all
large page devices, as they do not support autoincrement." I was
conflating "not support autoincrement" with the NAND_NO_AUTOINCR option,
which was in fact doing nothing. So, when I dropped NAND_NO_AUTOINCR, I
concluded that I then could harmlessly drop NAND_NO_READRDY. But of
course the fact the NAND_NO_AUTOINCR was doing nothing didn't mean
NAND_NO_READRDY was doing nothing...

So, NAND_NO_READRDY is re-introduced as NAND_NEED_READRDY and applied
only to those few remaining small-page NAND which needed it in the first
place.

Cc: stable@kernel.org [3.5+]
Reported-by: Alexander Shiyan <shc_work@mail.ru>
Tested-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c
drivers/mtd/nand/nand_ids.c
include/linux/mtd/nand.h