All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sdhci: highspeed:  check for mmc as well as sd cards
@ 2010-10-06 18:57 Philip Rakity
  2010-10-07 23:27 ` Philip Rakity
  2010-10-07 23:52 ` Chris Ball
  0 siblings, 2 replies; 3+ messages in thread
From: Philip Rakity @ 2010-10-06 18:57 UTC (permalink / raw)
  To: linux-mmc@vger.kernel.org


when examining the code in the mmc directory the SD and MMC code
set highspeed using a different constant.  Change the sd driver
to recognize this and switch to high speed.

Signed-off-by: Philip Rakity <prakity@marvell.com>
---
 drivers/mmc/host/sdhci.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index d3f924b..1d3f4d8 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -1194,8 +1194,9 @@ static void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
 	else
 		ctrl &= ~SDHCI_CTRL_4BITBUS;
 
-	if (ios->timing == MMC_TIMING_SD_HS &&
-	    !(host->quirks & SDHCI_QUIRK_NO_HISPD_BIT))
+	if ((ios->timing == MMC_TIMING_SD_HS
+			|| ios->timing == MMC_TIMING_MMC_HS)
+		&& !(host->quirks & SDHCI_QUIRK_NO_HISPD_BIT))
 		ctrl |= SDHCI_CTRL_HISPD;
 	else
 		ctrl &= ~SDHCI_CTRL_HISPD;
-- 
1.6.0.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-07 23:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-06 18:57 [PATCH] sdhci: highspeed: check for mmc as well as sd cards Philip Rakity
2010-10-07 23:27 ` Philip Rakity
2010-10-07 23:52 ` Chris Ball

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.