]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC: r234524
authormarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 26 May 2012 09:31:23 +0000 (09:31 +0000)
committermarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 26 May 2012 09:31:23 +0000 (09:31 +0000)
commit5298f8500ce109d2754be32af17d00ff01666623
treeed295c40af1112544d3a0221586ff05a0bc5654d
parente8a2efbdab4c9326bb10a2ab2c7bf690b695be54
MFC: r234524

o Fixes:
  - When switching to 4-bit operation, send a SET_CLR_CARD_DETECT command
    to disconnect the card-detect pull-up resistor from the DAT3 line before
    sending the SET_BUS_WIDTH command.
  - Add the missing "reserved" zero entry to the mantissa table used to
    decode various CSD fields. This was causing SD cards to report that they
    could run at 30 MHz instead of the maximum 25 MHz mandated in the spec.
o Enhancements:
  - At the MMC layer, format various info from the CID into a string that
    uniquely identifies the card instance (manufacturer number, serial
    number, product name and revision, etc). Export it as an instance
    variable.
  - At the MMCSD layer, display the formatted card ID string, and also
    report the clock speed of the hardware (not the card's max speed), and
    the number of bits and number of blocks per transfer. It comes out like
    this now:
    mmcsd0: 968MB <SD SD01G 8.0 SN 276886905 MFG 08/2008 by 3 SD> at mmc0
    22.5MHz/4bit/128-block
o Use DEVMETHOD_END.
o Use NULL instead of 0 for pointers.

PR: 156496
Submitted by: Ian Lepore

git-svn-id: svn://svn.freebsd.org/base/stable/9@236089 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/mmc/mmc.c
sys/dev/mmc/mmcbrvar.h
sys/dev/mmc/mmcreg.h
sys/dev/mmc/mmcsd.c
sys/dev/mmc/mmcvar.h
sys/modules/mmcsd/Makefile