mtd: spinand: Fix comment
This is a copy paste error, checking the ECC status finishes a page read
here, not a page write.
Fixes: 945845b54c
("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
This commit is contained in:
parent
1a57b13e60
commit
8363dfc845
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue