From: "Al Cooper" <acooper@gmail.com>
To: cjb@laptop.org, linux-mmc@vger.kernel.org, cernekee@gmail.com
Cc: Al Cooper <acooper@gmail.com>
Subject: [PATCH] mmc: Limit MMC speed to 25MHz if HIGHSPEED CAPS bit is not set.
Date: Mon, 14 May 2012 16:11:54 -0400 [thread overview]
Message-ID: <1337026314-14003-1-git-send-email-acooper@gmail.com> (raw)
In-Reply-To: <y>
If the HIGHSPEED capabilities bit is not set, limit the MMC clock
speed to 25MHz.
Signed-off-by: Al Cooper <acooper@gmail.com>
---
drivers/mmc/core/mmc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index 54df5ad..912c893 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -1045,7 +1045,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
mmc_card_set_hs200(card);
mmc_set_timing(card->host,
MMC_TIMING_MMC_HS200);
- } else {
+ } else if (host->caps & MMC_CAP_MMC_HIGHSPEED) {
mmc_card_set_highspeed(card);
mmc_set_timing(card->host, MMC_TIMING_MMC_HS);
}
--
1.7.6
next reply other threads:[~2012-05-14 20:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-14 20:11 Al Cooper [this message]
2012-05-14 20:15 ` [PATCH] mmc: Limit MMC speed to 25MHz if HIGHSPEED CAPS bit is not set Adam Cooper
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=1337026314-14003-1-git-send-email-acooper@gmail.com \
--to=acooper@gmail.com \
--cc=cernekee@gmail.com \
--cc=cjb@laptop.org \
--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 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.