linux-stable/drivers/mtd/nand/spi
Ezra Buehler a41636ceb3 mtd: spinand: esmt: Extend IDs to 5 bytes
[ Upstream commit 4bd14b2fd8 ]

According to the datasheets, the ESMT chips in question will return a 5
byte long identification code where the last 3 bytes are the JEDEC
continuation codes (7Fh). Although, I would have expected 4 continuation
codes as Powerchip Semiconductor (C8h, corresponding to the parameter
page data) is located in bank 5 of the JEDEC database.

By matching the full 5 bytes we can avoid clashes with GigaDevice NAND
flashes.

This fix allows the MT7688-based GARDENA smart Gateway to boot again.

Fixes: aa08bf187f ("mtd: spinand: esmt: add support for F50D2G41KA")
Signed-off-by: Ezra Buehler <ezra.buehler@husqvarnagroup.com>
Reviewed-by: Martin Kurbanov <mmkurbanov@salutedevices.com>
Tested-by: Martin Kurbanov <mmkurbanov@salutedevices.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240125200108.24374-3-ezra@easyb.ch
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:17:03 -04:00
..
Kconfig mtd: spinand: Use the external ECC engine logic 2020-12-10 22:37:30 +01:00
Makefile mtd: spinand: add support for FORESEE F35SQA002G 2023-10-16 11:16:53 +02:00
alliancememory.c mtd: spinand: Add support for AllianceMemory AS5F34G04SND 2023-01-30 17:16:28 +01:00
ato.c mtd: spinand: Add support for ATO25D1GA 2022-06-06 15:05:33 +02:00
core.c spi: Unify error codes by replacing -ENOTSUPP with -EOPNOTSUPP 2023-11-30 12:12:39 +00:00
esmt.c mtd: spinand: esmt: Extend IDs to 5 bytes 2024-03-26 18:17:03 -04:00
foresee.c mtd: spinand: add support for FORESEE F35SQA002G 2023-10-16 11:16:53 +02:00
gigadevice.c mtd: spinand: gigadevice: Fix the get ecc status issue 2024-02-05 11:50:31 +01:00
macronix.c mtd: spinand: macronix: Add support for serial NAND flash 2023-06-09 17:21:17 +02:00
micron.c mtd: spinand: micron: correct bitmask for ecc status 2023-09-11 17:48:24 +02:00
paragon.c mtd: spinand: rework detect procedure for different READ_ID operation 2020-03-09 14:50:19 +01:00
toshiba.c Core MTD changes: 2023-09-03 09:59:53 -07:00
winbond.c mtd: spinand: winbond: add support for serial NAND flash 2023-10-16 11:16:58 +02:00
xtx.c mtd: spinand: Add support for XTX XT26xxxDxxxxx 2023-10-16 11:17:00 +02:00