Page MenuHomeFreeBSD

JH7110 MMC driver
ClosedPublic

Authored by mhorne on Feb 22 2024, 8:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Aug 17, 7:46 PM
Unknown Object (File)
Sat, Aug 9, 4:36 AM
Unknown Object (File)
Mon, Aug 4, 11:03 PM
Unknown Object (File)
Wed, Jul 23, 3:56 AM
Unknown Object (File)
Jul 14 2025, 4:06 AM
Unknown Object (File)
Jul 12 2025, 9:20 AM
Unknown Object (File)
Jul 11 2025, 4:04 PM
Unknown Object (File)
Jul 10 2025, 5:58 PM
Subscribers

Details

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

sys/dev/mmc/host/dwmmc_starfive.c
47

Where does this number come from?

sys/dev/mmc/host/dwmmc_starfive.c
47

It's the actual frequency this clock has in vendor's kernel

jrtc27 added inline comments.
sys/dev/mmc/host/dwmmc_starfive.c
47

Why isn't it using the frequency in the mmc_ios?

sys/dev/mmc/host/dwmmc_starfive.c
47

I had made tests with more complicated algorithms here. At some point merely reading ios->clock caused a crash. Somehow I had eventually dispensed a now obvious looking solution to get the frequency from there.

doing it like it should be done

mhorne edited reviewers, added: jsihv_gmx.com; removed: mhorne.

Taking this over so I can publish some additions/changes...

Add check for generic compatible string exported by current u-boot.

This revision was not accepted when it landed; it landed in state Needs Review.May 7 2024, 4:05 PM
This revision was automatically updated to reflect the committed changes.