mtd: nand: do not check R/B# for CMD_READID in nand_command(_lp)

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed May 10 19:59:10 PDT 2017


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=3158fa0e739615769cc047d2428f30f4c3b6640e
Commit:     3158fa0e739615769cc047d2428f30f4c3b6640e
Parent:     e30b46909bdf3ac8699a47cfd64b44fabc29f253
Author:     Masahiro Yamada <yamada.masahiro at socionext.com>
AuthorDate: Thu Mar 23 09:17:49 2017 +0900
Committer:  Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Fri Mar 24 10:07:38 2017 +0100

    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 at socionext.com>
    Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
 drivers/mtd/nand/nand_base.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index afbb80f..b7daede 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,
 	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:



More information about the linux-mtd-cvs mailing list