]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mtd: nand: do not check R/B# for CMD_SET_FEATURES in nand_command(_lp)
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 23 Mar 2017 00:17:50 +0000 (09:17 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 24 Mar 2017 09:07:40 +0000 (10:07 +0100)
Set Features (0xEF) command toggles the R/B# pin after 4 sub feature
parameters are written.

Currently, nand_command(_lp) calls chip->dev_ready immediately after
the address cycle because NAND_CMD_SET_FEATURES falls into default:
label.  No wait is needed at this point.

If you see nand_onfi_set_features(), R/B# is already cared by the
chip->waitfunc call.

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 b7daedee23b59001ecb03284918a4c0a11add72f..c4c3386e4c0ad14ccdd6416e6deda466ff2af598 100644 (file)
@@ -669,6 +669,7 @@ static void nand_command(struct mtd_info *mtd, unsigned int command,
        case NAND_CMD_SEQIN:
        case NAND_CMD_STATUS:
        case NAND_CMD_READID:
+       case NAND_CMD_SET_FEATURES:
                return;
 
        case NAND_CMD_RESET:
@@ -788,6 +789,7 @@ static void nand_command_lp(struct mtd_info *mtd, unsigned int command,
        case NAND_CMD_SEQIN:
        case NAND_CMD_STATUS:
        case NAND_CMD_READID:
+       case NAND_CMD_SET_FEATURES:
                return;
 
        case NAND_CMD_RNDIN: