Thread (19 messages) flat view 19 messages, 3 authors, 2017-12-01
STALE3181d REVIEWED: 1 (0M)

1 review trailer.

[PATCH 1/5] mtd: nand: use usual return values for the ->erase() hook

From: Masahiro Yamada <hidden>
Date: 2017-12-01 02:12:08
Also in: linux-mediatek

2017-12-01 7:02 GMT+09:00 Miquel RAYNAL [off-list ref]:
quoted
quoted
diff --git a/drivers/mtd/nand/nand_base.c
b/drivers/mtd/nand/nand_base.c index 630048f5abdc..4d1f2bda6095
100644 --- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -3077,7 +3077,7 @@ int nand_erase_nand(struct mtd_info *mtd,
struct erase_info *instr, status = chip->erase(mtd, page &
chip->pagemask);
            /* See if block erase succeeded */
-           if (status & NAND_STATUS_FAIL) {
+           if (status) {
                    pr_debug("%s: failed erase, page 0x%08x\n",
                                    __func__, page);
                    instr->state = MTD_ERASE_FAILED;
You forgot to patch single_erase() accordingly.
Right, sorry about that, I will fix that.
Assuming single_erase() will be fixed,


For denali.c

Acked-by: Masahiro Yamada <redacted>





-- 
Best Regards
Masahiro Yamada
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help