]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: spinand: esmt: Extend IDs to 5 bytes
authorEzra Buehler <ezra.buehler@husqvarnagroup.com>
Thu, 25 Jan 2024 20:01:08 +0000 (22:01 +0200)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:45 +0000 (18:19 -0400)
commit0a96e0da9fd98291286a6527d34f38d04d627bd8
tree4ad65a003017165c14e5ef651cf296450c5f59f3
parent90029b9c979b60de5cb2b70ade4bbf61d561bc5d
mtd: spinand: esmt: Extend IDs to 5 bytes

[ Upstream commit 4bd14b2fd8a83a2f5220ba4ef323f741e11bfdfd ]

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: aa08bf187f32 ("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>
drivers/mtd/nand/spi/esmt.c