mtd: spinand: esmt: fix id code for F50D1G41LB
authorGeorge Moussalem <[email protected]>
Wed, 28 May 2025 08:53:00 +0000 (12:53 +0400)
committerRobert Marko <[email protected]>
Fri, 13 Jun 2025 10:02:39 +0000 (12:02 +0200)
commitf2221a0903430916fe679ff6a2e9f8ccef590b2b
tree442c63b1267d9dfc3fb295f3a037822561ba6ac7
parenta23f8412894db465f1b5d5176f88c6f7d8120bce
mtd: spinand: esmt: fix id code for F50D1G41LB

Upon detecting the ID for the ESMT F50D1G41LB chip, the fifth byte
returned is always 0x00 instead of the expected JEDEC continuation code
of 0x7f. This causes detection to fail:

[    0.304399] spi-nand spi0.0: unknown raw ID c8117f7f00
[    0.508943] spi-nand: probe of spi0.0 failed with error -524

So let's revert back to the 4 byte ID code for this chip
specifically.

Fixes: 4bd14b2fd8a8 ("mtd: spinand: esmt: Extend IDs to 5 bytes")
Signed-off-by: George Moussalem <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19004
Signed-off-by: Robert Marko <[email protected]>
target/linux/qualcommax/patches-6.12/0055-v6.16-mtd-spinand-esmt-fix-id-code-for-F50D1G41LB.patch [new file with mode: 0644]