diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-06-29 21:51:57 +0200 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-07-16 01:07:04 +0200 |
commit | 8363dfc845d74b980e109111b82f0a72aa92e47a (patch) | |
tree | bb1c8bca9ca2e7ef775287a00c3397bf11dc7de4 /drivers/mtd | |
parent | 1a57b13e6017d2af575f4f42e848aa0b64d4bcf1 (diff) | |
download | linux-8363dfc845d74b980e109111b82f0a72aa92e47a.tar.gz linux-8363dfc845d74b980e109111b82f0a72aa92e47a.tar.bz2 linux-8363dfc845d74b980e109111b82f0a72aa92e47a.zip |
mtd: spinand: Fix comment
This is a copy paste error, checking the ECC status finishes a page read
here, not a page write.
Fixes: 945845b54c9c ("mtd: spinand: Instantiate a SPI-NAND on-die ECC engine")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210629195157.567828-1-miquel.raynal@bootlin.com
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/spi/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 446ba8d43fbc..4af32cfcbd96 100644 --- a/drivers/mtd/nand/spi/core.c +++ b/drivers/mtd/nand/spi/core.c @@ -307,7 +307,7 @@ static int spinand_ondie_ecc_finish_io_req(struct nand_device *nand, if (req->type == NAND_PAGE_WRITE) return 0; - /* Finish a page write: check the status, report errors/bitflips */ + /* Finish a page read: check the status, report errors/bitflips */ ret = spinand_check_ecc_status(spinand, engine_conf->status); if (ret == -EBADMSG) mtd->ecc_stats.failed++; |