From: Chris Ball <cjb@laptop.org>
To: linux-mmc@vger.kernel.org
Cc: "George G. Davis" <gdavis@mvista.com>
Subject: [RFC/PATCH RESEND] mmc: sdhci: Enable high speed support for MMC cards
Date: Fri, 27 Aug 2010 20:19:45 +0100 [thread overview]
Message-ID: <20100827191945.GI20407@void.printf.net> (raw)
Hi,
This patch wasn't responded to -- any feedback from the list?
From: George G. Davis <gdavis@mvista.com>
Date: Thu, 18 Feb 2010 15:27:53 -0500
Allow high speed mode for high speed capable ver 4.x MMC cards.
Comments and/or feedback appreciated.
Signed-off-by: George G. Davis <gdavis@mvista.com>
[cjb: rebase patch against Linus]
Signed-off-by: Chris Ball <cjb@laptop.org>
---
drivers/mmc/host/sdhci.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index fdc9233..8e360e1 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -1180,7 +1180,8 @@ 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 &&
+ 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
@@ -1823,8 +1824,10 @@ int sdhci_add_host(struct sdhci_host *host)
if (!(host->quirks & SDHCI_QUIRK_FORCE_1_BIT_DATA))
mmc->caps |= MMC_CAP_4_BIT_DATA;
- if (caps & SDHCI_CAN_DO_HISPD)
+ if (caps & SDHCI_CAN_DO_HISPD) {
mmc->caps |= MMC_CAP_SD_HIGHSPEED;
+ mmc->caps |= MMC_CAP_MMC_HIGHSPEED;
+ }
if (host->quirks & SDHCI_QUIRK_BROKEN_CARD_DETECTION)
mmc->caps |= MMC_CAP_NEEDS_POLL;
--
1.7.0.1
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
next reply other threads:[~2010-08-27 19:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-27 19:19 Chris Ball [this message]
2010-08-28 5:39 ` [RFC/PATCH RESEND] mmc: sdhci: Enable high speed support for MMC cards Kyungmin Park
2010-08-28 16:24 ` Chris Ball
2010-08-30 1:34 ` Kyungmin Park
2010-08-30 15:56 ` [PATCH RESEND] " Chris Ball
2010-09-17 22:14 ` Chris Ball
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100827191945.GI20407@void.printf.net \
--to=cjb@laptop.org \
--cc=gdavis@mvista.com \
--cc=linux-mmc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).