diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-03-22 20:17:50 -0400 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-03-24 05:07:40 -0400 |
commit | c5d664aa5a4c4b257a54eb35045031630d105f49 (patch) | |
tree | 816b9d0d61440a00148dde372c42f3ca3ba5722e | |
parent | 3158fa0e739615769cc047d2428f30f4c3b6640e (diff) |
mtd: nand: do not check R/B# for CMD_SET_FEATURES in nand_command(_lp)
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>
-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 b7daedee23b5..c4c3386e4c0a 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c | |||
@@ -669,6 +669,7 @@ static void nand_command(struct mtd_info *mtd, unsigned int command, | |||
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 | case NAND_CMD_READID: |
672 | case NAND_CMD_SET_FEATURES: | ||
672 | return; | 673 | return; |
673 | 674 | ||
674 | case NAND_CMD_RESET: | 675 | case NAND_CMD_RESET: |
@@ -788,6 +789,7 @@ static void nand_command_lp(struct mtd_info *mtd, unsigned int command, | |||
788 | case NAND_CMD_SEQIN: | 789 | case NAND_CMD_SEQIN: |
789 | case NAND_CMD_STATUS: | 790 | case NAND_CMD_STATUS: |
790 | case NAND_CMD_READID: | 791 | case NAND_CMD_READID: |
792 | case NAND_CMD_SET_FEATURES: | ||
791 | return; | 793 | return; |
792 | 794 | ||
793 | case NAND_CMD_RNDIN: | 795 | case NAND_CMD_RNDIN: |