* Backport "mtd: spinand: Add support for 5-byte IDs" to 6.6, 6.7 and 6.8
@ 2024-03-30 13:49 Hauke Mehrtens
2024-03-30 16:25 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Hauke Mehrtens @ 2024-03-30 13:49 UTC (permalink / raw)
To: stable; +Cc: John Audia, Ezra Buehler, linux-mtd, Miquel Raynal
Hi,
Please backport the following commit back to the Linux stable kernels
6.6, 6.7 and 6.8:
commit 34a956739d295de6010cdaafeed698ccbba87ea4
Author: Ezra Buehler <ezra.buehler@husqvarnagroup.com>
Date: Thu Jan 25 22:01:07 2024 +0200
mtd: spinand: Add support for 5-byte IDs
E.g. ESMT chips will return an identification code with a length of 5
bytes. In order to prevent ambiguity, flash chips would actually
need to
return IDs that are up to 17 or more bytes long due to JEDEC's
continuation scheme. I understand that if a manufacturer ID is located
in bank N of JEDEC's database (there are currently 16 banks), N - 1
continuation codes (7Fh) need to be added to the identification code
(comprising of manufacturer ID and device ID). However, most flash chip
manufacturers don't seem to implement this (correctly).
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-2-ezra@easyb.ch
This will fix a regression introduced between Linux kernel 6.6.22 and
6.6.23 in OpenWrt. The esmt NAND flash is not detected any more:
<3>[ 0.885607] spi-nand spi0.0: unknown raw ID c8017f7f
<4>[ 0.890852] spi-nand: probe of spi0.0 failed with error -524
See: https://github.com/openwrt/openwrt/pull/14992
The following commit was backported to 6.6.22, but the commit it depends
on was not backported.
commit 4bd14b2fd8a83a2f5220ba4ef323f741e11bfdfd
Author: Ezra Buehler <ezra.buehler@husqvarnagroup.com>
Date: Thu Jan 25 22:01:08 2024 +0200
mtd: spinand: esmt: Extend IDs to 5 bytes
Hauke
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Backport "mtd: spinand: Add support for 5-byte IDs" to 6.6, 6.7 and 6.8
2024-03-30 13:49 Backport "mtd: spinand: Add support for 5-byte IDs" to 6.6, 6.7 and 6.8 Hauke Mehrtens
@ 2024-03-30 16:25 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2024-03-30 16:25 UTC (permalink / raw)
To: Hauke Mehrtens; +Cc: stable, John Audia, Ezra Buehler, linux-mtd, Miquel Raynal
On Sat, Mar 30, 2024 at 02:49:56PM +0100, Hauke Mehrtens wrote:
> Hi,
>
> Please backport the following commit back to the Linux stable kernels 6.6,
> 6.7 and 6.8:
>
> commit 34a956739d295de6010cdaafeed698ccbba87ea4
> Author: Ezra Buehler <ezra.buehler@husqvarnagroup.com>
> Date: Thu Jan 25 22:01:07 2024 +0200
>
> mtd: spinand: Add support for 5-byte IDs
>
> E.g. ESMT chips will return an identification code with a length of 5
> bytes. In order to prevent ambiguity, flash chips would actually need to
> return IDs that are up to 17 or more bytes long due to JEDEC's
> continuation scheme. I understand that if a manufacturer ID is located
> in bank N of JEDEC's database (there are currently 16 banks), N - 1
> continuation codes (7Fh) need to be added to the identification code
> (comprising of manufacturer ID and device ID). However, most flash chip
> manufacturers don't seem to implement this (correctly).
>
> 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-2-ezra@easyb.ch
>
>
> This will fix a regression introduced between Linux kernel 6.6.22 and 6.6.23
> in OpenWrt. The esmt NAND flash is not detected any more:
> <3>[ 0.885607] spi-nand spi0.0: unknown raw ID c8017f7f
> <4>[ 0.890852] spi-nand: probe of spi0.0 failed with error -524
> See: https://github.com/openwrt/openwrt/pull/14992
>
>
> The following commit was backported to 6.6.22, but the commit it depends on
> was not backported.
> commit 4bd14b2fd8a83a2f5220ba4ef323f741e11bfdfd
> Author: Ezra Buehler <ezra.buehler@husqvarnagroup.com>
> Date: Thu Jan 25 22:01:08 2024 +0200
>
> mtd: spinand: esmt: Extend IDs to 5 bytes
Now queued up, thanks.
greg k-h
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-30 16:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-30 13:49 Backport "mtd: spinand: Add support for 5-byte IDs" to 6.6, 6.7 and 6.8 Hauke Mehrtens
2024-03-30 16:25 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox