difos/target/linux/generic
Christian Lamparter b047ca1aa0 kernel: move Toshiba-TC58NVG0S3H patch to ipq40xx
Hannu Nyman wrote in openwrt's github issue #9962:
|Based on forum discussion, the commit 0bc794a
|"kernel: add support for Toshiba TC58NVG0S3HTA00 NAND flash"
|causes flash memory chip misdetection for some other
|Fritzbox devices, as the commit only defines a 4-byte flash
|memory chip ID that matches several chips used in the devices.
|
|See discussion from this onward
|<https://forum.openwrt.org/t/openwrt-22-03-0-rc1-first-release-candidate/126045/182>
|
|OpenWrt 22.03.0-rc2 and rc3 are causing on a Fritzbox 7412
|bootloops due to a misdetected flash chip.
|
|Yup, that patch is missing the 5th ID byte entirely - both chips
|share the same first 4;
|
| TC58NVG0S3HTA00 = 0x98 0xf1 0x80 0x15 0x72 (digikey datasheet, page 35)
| TC58BVG0S3HTA00 = 0x98 0xf1 0x80 0x15 0xf2 (digikey datasheet, page 28)
|
|The commit has also been backported to openwrt-22.03 after rc1,
|so both rc2 and rc3 suffer from this bug."

Andreas' TC58NVG0S3H seems not to follow Toshibas/Kioxa's own datasheet.
It only reports the first four bytes: "98 f1 80 15 00 00 00 00".

This patch changes the id_len in the entry to 8. This makes it so that
Andreas' NAND is still detected. At the same time, this prevents other
Toshiba NAND flash chips - that share the same four bytes - from being
misdetected.

The issue has been reported upstream, since they also accepted the initial
patch... so if not addressed, 5.19/5.20 will also break those affected
devices again.

Reported-by: Peter-vdL
Fixes: 0bc794a668 ("kernel: add support for Toshiba TC58NVG0S3HTA00 NAND flash")
Link: <https://github.com/openwrt/openwrt/issues/9962>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-06-05 21:05:17 +02:00
..
backport-5.10 kernel: backport flow offload fixes 2022-05-27 14:15:43 +02:00
backport-5.15 kernel: backport flow offload fixes 2022-05-27 14:15:43 +02:00
files kernel: update FIT partition parser to new property name 2022-04-20 15:23:02 +01:00
hack-5.10 kernel: modules: make ar8216/8327 modularizable 2022-06-05 16:58:48 +02:00
hack-5.15 kernel: modules: make ar8216/8327 modularizable 2022-06-05 16:58:48 +02:00
image target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
other-files initramfs: switch to tmpfs to fix ujail 2020-11-27 01:23:43 +00:00
pending-5.10 kernel: move Toshiba-TC58NVG0S3H patch to ipq40xx 2022-06-05 21:05:17 +02:00
pending-5.15 kernel: move Toshiba-TC58NVG0S3H patch to ipq40xx 2022-06-05 21:05:17 +02:00
config-5.10 kernel: add two ksyms to the generic kconfigs 2022-06-01 15:03:40 +02:00
config-5.15 kernel: add two ksyms to the generic kconfigs 2022-06-01 15:03:40 +02:00
config-filter kernel: filter out both Clang and LLD versions 2021-12-17 16:16:34 +01:00
PATCHES kernel: update PATCHES with a stricter policy 2013-07-09 20:52:07 +00:00