mtd: nand: do not check R/B# for CMD_READID in nand_command(_lp)
authorMasahiro Yamada <[email protected]>
Fri, 15 Sep 2017 12:44:58 +0000 (21:44 +0900)
committerMasahiro Yamada <[email protected]>
Sun, 15 Oct 2017 13:31:35 +0000 (22:31 +0900)
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 <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
[ Linux commit: 3158fa0e739615769cc047d2428f30f4c3b6640e ]

drivers/mtd/nand/nand_base.c

index b025001337e1fd0c8806461753e699a9d06a4aad..be2dc15887b59dc2539b86f7b029a822a523e54a 100644 (file)
@@ -651,6 +651,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:
@@ -748,6 +749,7 @@ static void nand_command_lp(struct mtd_info *mtd, unsigned int command,
        case NAND_CMD_SEQIN:
        case NAND_CMD_RNDIN:
        case NAND_CMD_STATUS:
+       case NAND_CMD_READID:
                return;
 
        case NAND_CMD_RESET: