[PATCH v2 0/3] mmc: sunxi: preparation for A523 UHS support
From: Jernej Skrabec
Date: Thu Nov 26 2026 - 13:29:58 EST
This series paves the way for SD card UHS-I support on the A523, which
will follow in a later series together with the A523 clock phases,
delay-chain tuning and the PF bank supply switch.
It improves the DMA setup and error reporting, which the UHS-I work
builds upon: a DMA mask matching the shifted IDMA addresses, IDMA
descriptors built from the mapped DMA segments as the DMA API requires,
and CRC errors reported as -EILSEQ instead of -ETIMEDOUT, so the MMC
core can request retuning.
Tested on H3, H6 and H616 SoCs, on multiple boards, including Tanix TX6
and OrangePi Plus2E.
Changes in v2:
- dropped patch 1, applied to mmc fixes
- rebased on mmc next, which now contains the probe error path fix
the DMA mask patch depended on
- Link to v1: https://lore.kernel.org/r/20261103183030.81078-1-jernej.skrabec@xxxxxxxxx
Best regards,
Jernej
Jernej Skrabec (3):
mmc: sunxi: Set the IDMA DMA mask
mmc: sunxi: Build IDMA descriptors from mapped SG list
mmc: sunxi: Distinguish CRC and timeout errors
drivers/mmc/host/sunxi-mmc.c | 116 +++++++++++++++++++++++------------
1 file changed, 77 insertions(+), 39 deletions(-)
base-commit: 299ac25f5af7cbba27d80e4eaa8f9c703c96b2dc
--
2.43.0