Page MenuHomeFreeBSD

mmcreg.h: update and match values to spec
Needs ReviewPublic

Authored by minsoochoo0122_proton.me on Thu, Jan 8, 5:28 PM.
Referenced Files
F141915072: D54604.id169336.diff
Mon, Jan 12, 11:22 AM
Unknown Object (File)
Sat, Jan 10, 4:33 AM
Unknown Object (File)
Fri, Jan 9, 3:57 PM
Unknown Object (File)
Fri, Jan 9, 3:38 PM
Unknown Object (File)
Fri, Jan 9, 12:44 PM
Unknown Object (File)
Fri, Jan 9, 11:00 AM
Unknown Object (File)
Fri, Jan 9, 9:59 AM
Unknown Object (File)
Fri, Jan 9, 9:47 AM
Subscribers

Details

Reviewers
bz
imp
marius
Group Reviewers
Contributor Reviews (src)
Summary

This adds and fixes values defined in the latest SD and eMMC standard. This is a breaking change, but it has to happen because FreeBSD's mmc macro doesn't match the spec's field name, which could be painful for device driver developers.

This is part of effort to bring mmc support for linuxkpi. Linux doesn't follow standard field name in some cases like DEVICE_TYPE, but it could be fixed in linux/mmc/mmc.h

Diff Detail

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

Event Timeline

This change could be controversial: both keeping old name and strictly following the spec's name makes sense. Even Linux doesn't strictly follow spec's field name such as PARTITION (PART) and DEVICE ('CARD`), so handling these cases in linuxkpi header is inevitable either way. I want to hear others' opinion on this.

As this moves MMC 3.31 to eMMC 5.1, we need to discuss backward-compatibility issue.