svn commit: r187551 - head/sys/dev/mmc
Warner Losh
imp at FreeBSD.org
Wed Jan 21 09:49:24 PST 2009
Author: imp
Date: Wed Jan 21 17:49:23 2009
New Revision: 187551
URL: http://svn.freebsd.org/changeset/base/187551
Log:
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...
Modified:
head/sys/dev/mmc/mmc.c
Modified: head/sys/dev/mmc/mmc.c
==============================================================================
--- head/sys/dev/mmc/mmc.c Wed Jan 21 17:42:57 2009 (r187550)
+++ head/sys/dev/mmc/mmc.c Wed Jan 21 17:49:23 2009 (r187551)
@@ -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);
More information about the svn-src-head
mailing list