summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2009-01-21 17:49:23 +0000
committerimp <imp@FreeBSD.org>2009-01-21 17:49:23 +0000
commitf6acc320c39b315250d26cbe437f125783bb25f7 (patch)
tree34cf1cbfe0e4292b84d74f83d313c38570b777e4 /sys
parent43f8f3168fefb8779d8d073c79fd04a79aaa4d96 (diff)
downloadFreeBSD-src-f6acc320c39b315250d26cbe437f125783bb25f7.zip
FreeBSD-src-f6acc320c39b315250d26cbe437f125783bb25f7.tar.gz
Default to normal bus timing mode on SD cards. In practice, most
cards people have today support high speed mode, so the timing field would be initialized to bus_timing_hs, but there are some slow cards...
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/mmc/mmc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/mmc/mmc.c b/sys/dev/mmc/mmc.c
index 7877640..582bdff 100644
--- a/sys/dev/mmc/mmc.c
+++ b/sys/dev/mmc/mmc.c
@@ -1118,6 +1118,7 @@ mmc_discover_cards(struct mmc_softc *sc)
mmc_app_send_scr(sc, ivar->rca, ivar->raw_scr);
mmc_app_decode_scr(ivar->raw_scr, &ivar->scr);
/* Get card switch capabilities. */
+ ivar->timing = bus_timing_normal;
if ((ivar->scr.sda_vsn >= 1) &&
(ivar->csd.ccc & (1<<10))) {
mmc_sd_switch(sc, 0, 0, 0xF, switch_res);
OpenPOWER on IntegriCloud