Page MenuHomeFreeBSD

JH7110 MMC driver
Needs ReviewPublic

Authored by mhorne on Feb 22 2024, 8:41 PM.
Tags
None
Referenced Files
F82409016: D44026.id137266.diff
Sun, Apr 28, 7:54 AM
Unknown Object (File)
Fri, Apr 26, 3:36 AM
Unknown Object (File)
Feb 26 2024, 10:27 PM
Subscribers

Details

Reviewers
jsihv_gmx.com
Group Reviewers
riscv

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 57147
Build 54035: arc lint + arc unit

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.