[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230905145637.139068-1-mmkurbanov@sberdevices.ru>
Date: Tue, 5 Sep 2023 17:56:37 +0300
From: Martin Kurbanov <mmkurbanov@...rdevices.ru>
To: Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>
CC: <linux-kernel@...r.kernel.org>, <linux-mtd@...ts.infradead.org>,
<kernel@...rdevices.ru>,
Martin Kurbanov <mmkurbanov@...rdevices.ru>,
Frieder Schrempf <frieder.schrempf@...tron.de>
Subject: [PATCH v3] mtd: spinand: micron: correct bitmask for ecc status
Valid bitmask is 0x70 in the status register.
Fixes: a508e8875e13 ("mtd: spinand: Add initial support for Micron MT29F2G01ABAGD")
Signed-off-by: Martin Kurbanov <mmkurbanov@...rdevices.ru>
Reviewed-by: Frieder Schrempf <frieder.schrempf@...tron.de>
---
Changes v3 since v2 at [1]:
- Remove the commit for fixing OOB layout.
- Add Fixes tag.
Changes v2 since v1 at [2]:
- Split into two individual patches.
- Remove the fix for using only non-protected ECC bytes from OOB area.
Links:
[1] https://lore.kernel.org/all/20230822122534.872646-1-mmkurbanov@sberdevices.ru/
[2] https://lore.kernel.org/all/20230815161024.810729-1-mmkurbanov@sberdevices.ru/
drivers/mtd/nand/spi/micron.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/spi/micron.c b/drivers/mtd/nand/spi/micron.c
index 50b7295bc922..12601bc4227a 100644
--- a/drivers/mtd/nand/spi/micron.c
+++ b/drivers/mtd/nand/spi/micron.c
@@ -12,7 +12,7 @@
#define SPINAND_MFR_MICRON 0x2c
-#define MICRON_STATUS_ECC_MASK GENMASK(7, 4)
+#define MICRON_STATUS_ECC_MASK GENMASK(6, 4)
#define MICRON_STATUS_ECC_NO_BITFLIPS (0 << 4)
#define MICRON_STATUS_ECC_1TO3_BITFLIPS (1 << 4)
#define MICRON_STATUS_ECC_4TO6_BITFLIPS (3 << 4)
--
2.40.0
Powered by blists - more mailing lists