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)
Thu, Jun 11, 12:48 PM
Unknown Object (File)
Wed, Jun 10, 3:52 PM
Unknown Object (File)
Wed, Jun 10, 9:17 AM
Unknown Object (File)
Wed, Jun 10, 4:49 AM
Unknown Object (File)
Tue, Jun 9, 4:34 PM
Unknown Object (File)
Sun, Jun 7, 10:22 PM
Unknown Object (File)
Thu, Jun 4, 9:08 AM
Unknown Object (File)
Mon, May 18, 1:20 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.