summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakahiro Kuwano <[email protected]>2025-09-30 03:20:58 +0300
committerMichael Trimarchi <[email protected]>2025-10-05 20:26:10 +0200
commit4d135d8a8540036a32983ff25e15810e00ae5938 (patch)
tree02076ad582ea879a57a8fe53d95a294dae2179e7
parentb4c502a2860618443baf9219d39975c463fd1283 (diff)
mtd: spinand: Remove write_enable_op() in markbad()
We don't have to call spinand_write_enable_op() in spinand_markbad() as it is called in spinand_write_page(). This is the port of linux commit c6858779f1f5 (mtd: spinand: Remove write_enable_op() in markbad()) Signed-off-by: Takahiro Kuwano <[email protected]> Reviewed-by: Tudor Ambarus <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Signed-off-by: Mikhail Kshevetskiy <[email protected]> # U-Boot port Reviewed-by: Frieder Schrempf <[email protected]> Signed-off-by: Michael Trimarchi <[email protected]>
-rw-r--r--drivers/mtd/nand/spi/core.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c
index 2083e3673cc..d0c9083a5b3 100644
--- a/drivers/mtd/nand/spi/core.c
+++ b/drivers/mtd/nand/spi/core.c
@@ -795,10 +795,6 @@ static int spinand_markbad(struct nand_device *nand, const struct nand_pos *pos)
if (ret)
return ret;
- ret = spinand_write_enable_op(spinand);
- if (ret)
- return ret;
-
return spinand_write_page(spinand, &req);
}