Skip to content

Commit ff97ceb

Browse files
committed
mtd: spinand: winbond: Ignore the last ID characters
The last 4 characters in Winbond's branding indicate: - the package type (ZE/SF/TB), - the temperature grade (I/J), - special options, typically the continuous read vs. page read feature support and its default (G/T/F/R), None of these information impact us, at the software level (well, the continuous read mode by default is impacting, but is already handled gracefully by disabling it in the initialization phase), so let's get rid of it. Signed-off-by: Miquel Raynal <[email protected]> Reviewed-by: Frieder Schrempf <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent fee9b24 commit ff97ceb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/mtd/nand/spi/winbond.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static const struct spinand_info winbond_spinand_table[] = {
207207
&update_cache_variants),
208208
0,
209209
SPINAND_ECCINFO(&w25m02gv_ooblayout, NULL)),
210-
SPINAND_INFO("W25N02JWZEIF",
210+
SPINAND_INFO("W25N02JW",
211211
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xbf, 0x22),
212212
NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 2, 1),
213213
NAND_ECCREQ(1, 512),
@@ -225,7 +225,7 @@ static const struct spinand_info winbond_spinand_table[] = {
225225
&update_cache_variants),
226226
0,
227227
SPINAND_ECCINFO(&w25m02gv_ooblayout, NULL)),
228-
SPINAND_INFO("W25N02KWZEIR",
228+
SPINAND_INFO("W25N02KW",
229229
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xba, 0x22),
230230
NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 1, 1, 1),
231231
NAND_ECCREQ(8, 512),
@@ -234,7 +234,7 @@ static const struct spinand_info winbond_spinand_table[] = {
234234
&update_cache_variants),
235235
0,
236236
SPINAND_ECCINFO(&w25n02kv_ooblayout, w25n02kv_ecc_get_status)),
237-
SPINAND_INFO("W25N01GWZEIG",
237+
SPINAND_INFO("W25N01GW",
238238
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xba, 0x21),
239239
NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 1, 1),
240240
NAND_ECCREQ(1, 512),

0 commit comments

Comments
 (0)