mtd: nand: do not check R/B# for CMD_READID in nand_command(_lp)
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 23 Mar 2017 00:17:49 +0000 (09:17 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 24 Mar 2017 09:07:38 +0000 (10:07 +0100)
Read ID (0x90) command does not toggle the R/B# pin.  Without this
patch, NAND_CMD_READID falls into the default: label, then R/B# is
checked by chip->dev_ready().

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/nand_base.c

index afbb80f4375a6b277f4f301edb855a9ab061e559..b7daedee23b59001ecb03284918a4c0a11add72f 100644 (file)
@@ -668,6 +668,7 @@ static void nand_command(struct mtd_info *mtd, unsigned int command,
        case NAND_CMD_ERASE2:
        case NAND_CMD_SEQIN:
        case NAND_CMD_STATUS:
+       case NAND_CMD_READID:
                return;
 
        case NAND_CMD_RESET:
@@ -786,6 +787,7 @@ static void nand_command_lp(struct mtd_info *mtd, unsigned int command,
        case NAND_CMD_ERASE2:
        case NAND_CMD_SEQIN:
        case NAND_CMD_STATUS:
+       case NAND_CMD_READID:
                return;
 
        case NAND_CMD_RNDIN: