diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-11-13 10:59:01 +0100 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-11-30 11:02:52 +0100 |
commit | 26f0740ed6a211bd81edc9118526636e814bd650 (patch) | |
tree | d2d129bb25c9fc8f42ef83b7d24ca7cd6ce22c2d /drivers | |
parent | df467899da0b71465760b4e35127bce837244eee (diff) | |
download | linux-stable-26f0740ed6a211bd81edc9118526636e814bd650.tar.gz linux-stable-26f0740ed6a211bd81edc9118526636e814bd650.tar.bz2 linux-stable-26f0740ed6a211bd81edc9118526636e814bd650.zip |
mtd: nand: hynix: Don't wait after applying new read-retry params
Setting read-retry parameters has no impact on the R/B pin, so waiting
for the chip to be ready is useless.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/nand/nand_hynix.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mtd/nand/nand_hynix.c b/drivers/mtd/nand/nand_hynix.c index 985751eda317..72d98cbff4ca 100644 --- a/drivers/mtd/nand/nand_hynix.c +++ b/drivers/mtd/nand/nand_hynix.c @@ -83,7 +83,6 @@ static int hynix_nand_setup_read_retry(struct mtd_info *mtd, int retry_mode) struct nand_chip *chip = mtd_to_nand(mtd); struct hynix_nand *hynix = nand_get_manufacturer_data(chip); const u8 *values; - int status; int i; values = hynix->read_retry->values + @@ -112,10 +111,6 @@ static int hynix_nand_setup_read_retry(struct mtd_info *mtd, int retry_mode) /* Apply the new settings. */ chip->cmdfunc(mtd, NAND_HYNIX_CMD_APPLY_PARAMS, -1, -1); - status = chip->waitfunc(mtd, chip); - if (status & NAND_STATUS_FAIL) - return -EIO; - return 0; } |