projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a57b13
)
mtd: spinand: Fix comment
author
Miquel Raynal
<miquel.raynal@bootlin.com>
Tue, 29 Jun 2021 19:51:57 +0000
(21:51 +0200)
committer
Miquel 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
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/spi/core.c
b/drivers/mtd/nand/spi/core.c
index 446ba8d43fbca94383c3f546bd11dbbdce4da43c..4af32cfcbd96f708107572231e9bbece1f805428 100644
(file)
--- 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++;