openwrt/target/linux/generic
Mikhail Kshevetskiy 32229a4bb7 kernel: mtd: spinand: continuous mode fixes
Continuous reading mode is broken for some spi controllers. There are two
possible bug scenarios:

1) "continuous mode" flash and spi controller without dirmap support,
   but with restriction on transfer length in adjust_op_size()

2) "continuous mode" flash and spi controller with dirmap support for a
   single flash page

In the first case, any read that exceeds the limit specified in adjust_op_size()
will result in an EIO error. The limit may even be less than a size of a single
flash page. In this case, any read will result in an error.

In the second case, any read larger than flash page size will result in an EIO
error or spinand driver spoofing (because the spi controller driver returns
more bytes than were actually read).

This patch series tries to fix continuous reading (spinand driver side).
Unfortunately these fixes can't resolve "spinand driver spoofing" case.
Spi controller drivers might need fixes as well.

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Link: https://github.com/openwrt/openwrt/pull/20295
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-10-09 16:37:25 +02:00
..
backport-6.6 kernel: move accepted patch to backport directory 2025-09-23 22:12:34 +02:00
backport-6.12 kernel: bump 6.12 to 6.12.50 2025-10-04 16:18:49 +02:00
files kernel: rtl8261n: add support for Serdes TX swap 2025-09-29 12:00:22 +02:00
hack-6.6 kernel: ksmbd: revert upstream limit repeated connection 2025-10-05 00:17:02 +02:00
hack-6.12 kernel: ksmbd: revert upstream limit repeated connection 2025-10-05 00:17:02 +02:00
image treewide: strip trailing whitespace 2025-05-20 00:47:37 +02:00
other-files initramfs: switch to tmpfs to fix ujail 2020-11-27 01:23:43 +00:00
pending-6.6 kernel: bump 6.6 to 6.6.109 2025-10-04 16:20:12 +02:00
pending-6.12 kernel: mtd: spinand: continuous mode fixes 2025-10-09 16:37:25 +02:00
config-6.6 rockchip: backport driver updates for rk3576 2025-10-02 22:42:34 +02:00
config-6.12 rockchip: backport driver updates for rk3576 2025-10-02 22:42:34 +02:00
config-filter generic: config-filter: filter out CONFIG_PAHOLE_HAS_LANG_EXCLUDE 2025-05-14 11:28:01 +02:00
kernel-6.6 kernel: bump 6.6 to 6.6.110 2025-10-08 01:03:34 +02:00
kernel-6.12 kernel: bump 6.12 to 6.12.50 2025-10-04 16:18:49 +02:00
PATCHES.md generic: improve patches documentation 2025-06-11 15:09:46 +02:00