Page MenuHomeFreeBSD

aw_mmc: Reset controller and configure read fifo size
ClosedPublic

Authored by thj on Feb 4 2026, 10:31 AM.
Tags
None
Referenced Files
F171311821: D55097.id.diff
Thu, Sep 10, 8:10 AM
Unknown Object (File)
Tue, Sep 8, 11:36 AM
Unknown Object (File)
Tue, Sep 8, 2:28 AM
Unknown Object (File)
Sun, Sep 6, 7:21 PM
Unknown Object (File)
Sat, Sep 5, 3:39 AM
Unknown Object (File)
Sat, Sep 5, 2:46 AM
Unknown Object (File)
Fri, Sep 4, 8:26 PM
Unknown Object (File)
Fri, Sep 4, 7:16 PM
Subscribers

Details

Summary

On h616 (and I think h6, but this isn't verified) we need to reset the
controller, configure read and write and set the read fifo size to get a
working sd card.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

thj requested review of this revision.Feb 4 2026, 10:31 AM

This looks fine to me, nice catch!

This revision is now accepted and ready to land.Feb 4 2026, 3:18 PM
manu requested changes to this revision.Feb 4 2026, 3:58 PM
manu added inline comments.
sys/arm/allwinner/aw_mmc.c
746

How where those delay chosen and why it's only done where there is a fifo threashold ?

752

We disable the FIFO and never use it so are you sure that it's needed ?

This revision now requires changes to proceed.Feb 4 2026, 3:58 PM

remove fifo configuration and delays

This revision is now accepted and ready to land.Feb 9 2026, 3:18 PM
This revision was automatically updated to reflect the committed changes.