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)
Mon, May 18, 1:20 PM
Unknown Object (File)
Mon, May 18, 1:15 PM
Unknown Object (File)
Mon, May 18, 1:08 AM
Unknown Object (File)
Mon, May 18, 1:04 AM
Unknown Object (File)
Sun, May 17, 7:18 PM
Unknown Object (File)
Sun, May 17, 7:10 PM
Unknown Object (File)
Sun, May 17, 7:42 AM
Unknown Object (File)
Sat, May 16, 6:01 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.