]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
mtd: spinand: Fix comment
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 29 Jun 2021 19:51:57 +0000 (21:51 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 15 Jul 2021 23:07:04 +0000 (01:07 +0200)
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
drivers/mtd/nand/spi/core.c

index 446ba8d43fbca94383c3f546bd11dbbdce4da43c..4af32cfcbd96f708107572231e9bbece1f805428 100644 (file)
@@ -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++;