openwrt/target/linux/mediatek
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
..
base-files mediatek: add support for Cudy TR3000 256MB v1 flash version 2025-06-22 19:17:25 +02:00
dts mediatek: fix wrong reset_gpio 2025-10-08 14:26:25 +02:00
files/drivers mediatek: Remove modules.builtin file 2025-07-22 00:01:38 +02:00
files-6.12 mediatek: fix wrong reset_gpio 2025-10-08 14:26:25 +02:00
filogic mediatek: filogic: use nvmem for Unifi 6 Plus caldata 2025-09-27 00:32:40 +02:00
image mediatek: CreatLentem clt-r30b1: Add Livinet Li228 as alt vendor model 2025-10-04 20:51:35 +02:00
mt7622 mediatek: add driver for HW-RNG v2 2025-09-13 12:54:03 +01:00
mt7623 mediatek: add driver for HW-RNG v2 2025-09-13 12:54:03 +01:00
mt7629 mediatek: add driver for HW-RNG v2 2025-09-13 12:54:03 +01:00
patches-6.12 kernel: mtd: spinand: continuous mode fixes 2025-10-09 16:37:25 +02:00
Makefile mediatek: switch to Linux 6.12 by default 2025-07-18 12:26:40 +01:00
modules.mk kernel: kmod-btmtk: Extract btmtk.ko into own package 2025-02-26 23:31:36 +01:00