Skip to content

mmc: sunxi: fixes and preparation for A523 UHS support

Jernej Skrabec linux-arm-kernel linux-mmc linux-sunxi lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mmc: sunxi: Report manual stop errors correctlydrivers/mmc/host/sunxi-mmc.c+4 -20 replies
2/4mmc: sunxi: Set the IDMA DMA maskdrivers/mmc/host/sunxi-mmc.c+5 -00 replies
3/4mmc: sunxi: Build IDMA descriptors from mapped SG listdrivers/mmc/host/sunxi-mmc.c+54 -370 replies
4/4mmc: sunxi: Distinguish CRC and timeout errorsdrivers/mmc/host/sunxi-mmc.c+18 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] mmc: sunxi: fixes and preparation for A523 UHS support

This series fixes a bug in the sunxi-mmc driver and 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.

Patch 1 fixes the manual stop command error reporting: a successful manual stop command is still reported as failed, while a failed one stores the error in its response instead.

The remaining patches improve 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.

The series is based on mmc next, but depends on commit 5e32202f532d ("mmc: sunxi: fix clock and runtime PM leaks on probe failure") from mmc fixes, which adds the error_disable_mmc label used by patch 2.

Tested on H3, H6 and H616 SoCs, on multiple boards, including Tanix TX6 and OrangePi Plus2E.

Best regards,
Jernej

Jernej Skrabec (4):
mmc: sunxi: Report manual stop errors correctly
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 | 122 +++++++++++++++++++++++------------
 1 file changed, 81 insertions(+), 41 deletions(-)

base-commit: fd9af27f6c2319713bb23832066585f8a59a1771
prerequisite-patch-id: 8d600908a2eb84acfcd034482dd6e345242f1464

Signature · 1 line
2.43.0