mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] mfd/spi: sprd: fix ADI transfer length handling
@ 2026-10-26 15:32 Weibin Liu
  2026-10-26 15:32 ` [PATCH v3 1/2] mfd: sprd-sc27xx: Pass byte length to spi_read() Weibin Liu
  2026-10-26 15:32 ` [PATCH v3 2/2] spi: sprd-adi: enforce the exact transfer length Weibin Liu
  0 siblings, 2 replies; 3+ messages in thread
From: Weibin Liu @ 2026-10-26 15:32 UTC (permalink / raw)
  To: Baolin Wang, Orson Zhai, Mark Brown, Lee Jones
  Cc: Weibin Liu, linux-kernel, stable, linux-spi, Chunyan Zhang, mfd,
	Guanglei Zhu, Sashiko

Thanks to Sashiko for reviewing v2.

v3 only rate-limits the two new invalid-length error messages in
patch 2. The exact transfer length checks and the SC27xx caller fix
are unchanged.

The separate, pre-existing issue about writing back an uninitialized
value after a failed ADI read is intentionally not included here. It
is independent of the transfer length fix and can be handled in a
separate patch.

The series was rebuilt with W=1 and retested in QEMU (aarch64 virt).
The length matrix and SC27xx software path remain unchanged. A burst
of 32 invalid reads and 32 invalid writes emitted only 10 messages at
each new driver call site. QEMU has no model of this hardware, and no
Spreadtrum hardware was available.

v2: https://lore.kernel.org/r/20261015-spi-sprd-adi-exactlen-v2-0-13203b6aef7e@xiaopeng.com

Changes in v3:
- Rate-limit invalid-length errors as suggested by Sashiko's review.

Signed-off-by: Weibin Liu <liuwb@xiaopeng.com>
---
 drivers/mfd/sprd-sc27xx-spi.c |  2 +-
 drivers/spi/spi-sprd-adi.c    | 14 ++++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-26 15:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-26 15:32 [PATCH v3 0/2] mfd/spi: sprd: fix ADI transfer length handling Weibin Liu
2026-10-26 15:32 ` [PATCH v3 1/2] mfd: sprd-sc27xx: Pass byte length to spi_read() Weibin Liu
2026-10-26 15:32 ` [PATCH v3 2/2] spi: sprd-adi: enforce the exact transfer length Weibin Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®