Skip to content

Commit

Permalink
mtd: nand: hynix: Don't wait after applying new read-retry params
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Boris Brezillon committed Nov 30, 2017
1 parent df46789 commit 26f0740
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/mtd/nand/nand_hynix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 +
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 26f0740

Please sign in to comment.