openwrt/target/linux/airoha
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
..
an7581 airoha: an7581: refresh kernel config 2025-09-29 12:05:10 +02:00
an7583 airoha: Introduce support for Airoha AN7583 SoC 2025-09-26 05:00:07 +02:00
dts airoha: fix scuclk node for an7581 2025-09-29 12:05:10 +02:00
en7523 airoha: switch to 6.12 and drop 6.6 2025-09-25 11:00:36 +02:00
image airoha: set default DEVICE_DTS/DEVICE_DTS_DIR 2025-09-29 12:05:09 +02:00
patches-6.12 kernel: mtd: spinand: continuous mode fixes 2025-10-09 16:37:25 +02:00
Makefile airoha: Introduce support for Airoha AN7583 SoC 2025-09-26 05:00:07 +02:00
modules.mk airoha: rename subtarget from en7581 to an7581 2024-10-23 12:32:03 +02:00