[PATCH v4 0/6] mtd: spi-nor: Handle ID collisions

Michael Walle michael at walle.cc
Mon Feb 28 05:55:32 PST 2022


Am 2022-02-28 14:44, schrieb Tudor Ambarus:
> Tested with MX25L3233F. I need sysfs dumps where there aren't.
> 
> v4:
> - adapt core to handle collisions between SFDP and non-SFDP flashes
> - rebase on latest spi-nor/next
> 
> v3:
> - report correct manufacturer name in ID collisions driver
> - use fixup name of the first flash, not of the one that collide
> - use xxd to dump sfdp (where I had the flash)
> - drop locking support on xt25f128b
> - constify flash_info fixups hook
> 
> Tudor Ambarus (6):
>   mtd: spi-nor: core: Report correct name in case of ID collisions
>   mtd: spi-nor: core: Handle ID collisions between SFDP & non-SFDP
>     flashes
>   mtd: spi-nor: macronix: Handle ID collision b/w MX25L3233F and
>     MX25L3205D
>   mtd: spi-nor: macronix: Handle ID collision b/w MX25L12805D and
>     MX25L12835F
>   mtd: spi-nor: Introduce Manufacturer ID collisions driver
>   mtd: spi-nor: manuf-id-collisions: Add support for xt25f128b
> 
>  drivers/mtd/spi-nor/Makefile              |  1 +
>  drivers/mtd/spi-nor/core.c                | 21 +++++++++--
>  drivers/mtd/spi-nor/core.h                |  1 +
>  drivers/mtd/spi-nor/macronix.c            | 46 ++++++++++++++++++++++-
>  drivers/mtd/spi-nor/manuf-id-collisions.c | 46 +++++++++++++++++++++++
>  drivers/mtd/spi-nor/sysfs.c               |  4 +-
>  include/linux/mtd/spi-nor.h               |  6 +++
>  7 files changed, 118 insertions(+), 7 deletions(-)
>  create mode 100644 drivers/mtd/spi-nor/manuf-id-collisions.c

drivers/mtd/spi-nor/xmc.c should probably be moved into
manuf-id-collisions as it actually reusing the micron/st
vendor id (?!).

-michael



More information about the linux-mtd mailing list