* [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
* Re: [PATCH] sdhci: highspeed: check for mmc as well as sd cards
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
1 sibling, 0 replies; 3+ messages in thread
From: Philip Rakity @ 2010-10-07 23:27 UTC (permalink / raw)
To: linux-mmc@vger.kernel.org
validated code when testing eMMC dual data rate.
On Oct 6, 2010, at 11:57 AM, Philip Rakity wrote:
>
> 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 [flat|nested] 3+ messages in thread
* Re: [PATCH] sdhci: highspeed: check for mmc as well as sd cards
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
1 sibling, 0 replies; 3+ messages in thread
From: Chris Ball @ 2010-10-07 23:52 UTC (permalink / raw)
To: Philip Rakity; +Cc: linux-mmc@vger.kernel.org
Hi Philip,
On Wed, Oct 06, 2010 at 11:57:23AM -0700, Philip Rakity wrote:
>
> 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;
> --
Thanks, applied to mmc-next.
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
^ permalink raw reply [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.