mtd: nand: hynix: Don't wait after applying new read-retry params
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 13 Nov 2017 09:59:01 +0000 (10:59 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 30 Nov 2017 10:02:52 +0000 (11:02 +0100)
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>
drivers/mtd/nand/nand_hynix.c

index 985751e..72d98cb 100644 (file)
@@ -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;
 }