Re: [PATCH 0/4] mmc: sunxi: fixes and preparation for A523 UHS support
From: Ulf Hansson
Date: Thu Nov 26 2026 - 11:51:46 EST
On Tue, Nov 3, 2026 at 7:31 PM Jernej Skrabec <jernej.skrabec@xxxxxxxxx> wrote:
>
> 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
> --
> 2.43.0
>
Patch1 applied for fixes, thanks! Patch2 needs a rebase, so please
submit a new version for the remaining pieces in the series.
Kind regards
Uffe