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
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
Unknown Object (File)
Thu, Sep 3, 5:48 PM
Unknown Object (File)
Tue, Sep 1, 9:44 PM
Unknown Object (File)
Tue, Sep 1, 6:32 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 70546
Build 67429: arc lint + arc unit

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.