Skip to content

Commit

Permalink
mtd: spinand: micron: correct bitmask for ecc status
Browse files Browse the repository at this point in the history
Valid bitmask is 0x70 in the status register.

Fixes: a508e88 ("mtd: spinand: Add initial support for Micron MT29F2G01ABAGD")
Signed-off-by: Martin Kurbanov <mmkurbanov@sberdevices.ru>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230905145637.139068-1-mmkurbanov@sberdevices.ru
  • Loading branch information
Martin Kurbanov authored and Miquel Raynal committed Sep 11, 2023
1 parent 6792b7f commit 9836a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/spi/micron.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9836a98

Please sign in to comment.