Page MenuHomeFreeBSD

Enable high-speed on the card before increasing frequency on the controller
ClosedPublic

Authored by kibab on May 25 2018, 9:46 AM.
Referenced Files
Unknown Object (File)
Thu, Nov 27, 5:38 AM
Unknown Object (File)
Tue, Nov 25, 10:17 AM
Unknown Object (File)
Mon, Nov 24, 6:50 PM
Unknown Object (File)
Sun, Nov 23, 11:47 PM
Unknown Object (File)
Sun, Nov 23, 12:31 PM
Unknown Object (File)
Fri, Nov 21, 2:36 PM
Unknown Object (File)
Fri, Nov 21, 2:33 AM
Unknown Object (File)
Fri, Nov 21, 2:32 AM
Subscribers
None

Details

Summary

Increasing operating frequency without telling card to switch to high-speed mode first upsets some cards and generates CRC errors.
While here, deselect / reselect cards after CMD6 and SCR fetch, as in original code.

Test Plan

This diff enables normal operation for the following card: <SDHC SL16G 8.0 SN 19853490 MFG 01/2017> with Raspberry Pi 3 host.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 16838

Event Timeline

other than the minor style nits, this looks good.

sys/cam/mmc/mmc_da.c
904

style says this { is alone on the next line.

905

and no blank line here.

This revision is now accepted and ready to land.Jun 4 2018, 8:27 PM
This revision was automatically updated to reflect the committed changes.