diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-03-22 20:17:49 -0400 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-03-24 05:07:38 -0400 |
commit | 3158fa0e739615769cc047d2428f30f4c3b6640e (patch) | |
tree | 192177c4025262e34952d43eb7d131fa9b4d3fdc | |
parent | e30b46909bdf3ac8699a47cfd64b44fabc29f253 (diff) |
mtd: nand: do not check R/B# for CMD_READID in nand_command(_lp)
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>
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index afbb80f4375a..b7daedee23b5 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c | |||
@@ -668,6 +668,7 @@ static void nand_command(struct mtd_info *mtd, unsigned int command, | |||
668 | case NAND_CMD_ERASE2: | 668 | case NAND_CMD_ERASE2: |
669 | case NAND_CMD_SEQIN: | 669 | case NAND_CMD_SEQIN: |
670 | case NAND_CMD_STATUS: | 670 | case NAND_CMD_STATUS: |
671 | case NAND_CMD_READID: | ||
671 | return; | 672 | return; |
672 | 673 | ||
673 | case NAND_CMD_RESET: | 674 | case NAND_CMD_RESET: |
@@ -786,6 +787,7 @@ static void nand_command_lp(struct mtd_info *mtd, unsigned int command, | |||
786 | case NAND_CMD_ERASE2: | 787 | case NAND_CMD_ERASE2: |
787 | case NAND_CMD_SEQIN: | 788 | case NAND_CMD_SEQIN: |
788 | case NAND_CMD_STATUS: | 789 | case NAND_CMD_STATUS: |
790 | case NAND_CMD_READID: | ||
789 | return; | 791 | return; |
790 | 792 | ||
791 | case NAND_CMD_RNDIN: | 793 | case NAND_CMD_RNDIN: |