Message ID | 1511285912-12452-17-git-send-email-yamada.masahiro@socionext.com |
---|---|
State | Accepted |
Commit | c7c553f249f99ae282f1fa5c0e314aae0bce8a26 |
Delegated to: | Masahiro Yamada |
Headers | show |
Series | mtd: nand: imports NAND core updates from Linux 4.15-rc1 and sync Denali driver | expand |
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 91afa47..16d4554 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -2439,12 +2439,13 @@ static int nand_write_page(struct mtd_info *mtd, struct nand_chip *chip, if (status < 0) return status; - if (nand_standard_page_accessors(&chip->ecc)) + if (nand_standard_page_accessors(&chip->ecc)) { chip->cmdfunc(mtd, NAND_CMD_PAGEPROG, -1, -1); - status = chip->waitfunc(mtd, chip); - if (status & NAND_STATUS_FAIL) - return -EIO; + status = chip->waitfunc(mtd, chip); + if (status & NAND_STATUS_FAIL) + return -EIO; + } return 0; }