Page MenuHomeFreeBSD

Fix typo in Driver Type A/C/D capability checks in sdhci.
ClosedPublic

Authored by ivadasz on May 30 2017, 8:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 25, 7:29 PM
Unknown Object (File)
Mon, May 20, 6:32 AM
Unknown Object (File)
Thu, May 9, 3:51 AM
Unknown Object (File)
Wed, May 8, 2:39 AM
Unknown Object (File)
Tue, May 7, 1:15 AM
Unknown Object (File)
Apr 28 2024, 11:05 AM
Unknown Object (File)
Apr 21 2024, 12:38 PM
Unknown Object (File)
Apr 20 2024, 1:23 AM
Subscribers
None

Details

Summary

Use the SDHCI_CAN_DRIVE_TYPE_A/_C/_D masks to check for Driver Type support,
instead of using the SDHCI_CTRL2_DRIVER_TYPE_A/_C/_D values which are meant
for setting the Driver Type in the HOST_CONTROL2 register.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 9584
Build 10031: arc lint + arc unit

Event Timeline

The Driver Type capability bits are located in the CAPABILITIES2 register.

This revision is now accepted and ready to land.May 30 2017, 11:05 PM
marius requested changes to this revision.May 31 2017, 7:20 PM

I no longer seem to be able to add inline comments in this crappy review thing; while at it,
the second hunk involved in printing capabilities should be changed to operate based on
host_caps and MMC_CAP_DRIVER_TYPE_x as generally, only SDHCI_CAN_VDD_x don't
have corresponding bits in host_caps.

This revision now requires changes to proceed.May 31 2017, 7:20 PM
This revision was automatically updated to reflect the committed changes.