Message ID | 20240201094353.33281-10-jaimeliao.tw@gmail.com |
---|---|
State | New |
Headers | show |
Series | Add octal DTR support for Macronix flash | expand |
Hi, > --- a/drivers/mtd/spi-nor/macronix.c > +++ b/drivers/mtd/spi-nor/macronix.c > @@ -262,6 +262,13 @@ static const struct flash_info > macronix_nor_parts[] = { > .id = SNOR_ID(0xc2, 0x80, 0x3a), > }, { > .id = SNOR_ID(0xc2, 0x85, 0x3a), > + }, { > + .id = SNOR_ID(0xc2, 0x80, 0x3b), > + }, { > + .id = SNOR_ID(0xc2, 0x85, 0x3b), These and all of patch 8/9 is not needed because you add the whole manufacturer in the next line. > + }, { > + /* Need the manufacturer fixups. Keep this last */ > + .id = SNOR_ID(0xc2), > } > }; Replace patch 8/9 and 9/9 with just the following: + /* Need the manufacturer fixups. Keep this last */ + { .id = SNOR_ID(0xc2) }
diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index 42b1e2fec4f2..ba729007a92e 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -262,6 +262,13 @@ static const struct flash_info macronix_nor_parts[] = { .id = SNOR_ID(0xc2, 0x80, 0x3a), }, { .id = SNOR_ID(0xc2, 0x85, 0x3a), + }, { + .id = SNOR_ID(0xc2, 0x80, 0x3b), + }, { + .id = SNOR_ID(0xc2, 0x85, 0x3b), + }, { + /* Need the manufacturer fixups. Keep this last */ + .id = SNOR_ID(0xc2), } };