From: Aaron Lu <aaron.lu@amd.com>
To: Chris Ball <cjb@laptop.org>
Cc: Qiang Liu <b32616@freescale.com>,
linux-mmc@vger.kernel.org, leoli@freescale.com,
kumar.gala@freescale.com, subhashj@codeaurora.org
Subject: Re: [PATCH] SD/MMC: fix the issue of SDHC performance regression
Date: Tue, 8 Nov 2011 17:47:36 +0800 [thread overview]
Message-ID: <20111108094734.GA1592@ladygaga> (raw)
In-Reply-To: <m2ipmw133p.fsf@bob.laptop.org>
On Mon, Nov 07, 2011 at 08:20:10AM -0500, Chris Ball wrote:
> Have you seen:
>
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=f2815f68dabbb373fd1c9f0fd4a609d486697c2b
> ("mmc: sd: Handle SD3.0 cards not supporting UHS-I bus speed mode")
>
> which is already in mainline? I think your patch is identical.
Hi Chris,
I think the existing code is somewhat confusing, since SDR50 means
100MHZ frequency while high speed is 50MHZ.
The reason it is correct is UHS_SDR50_BUS_SPEED is defined as 2,
which happened to be the same value as (1 << UHS_SDR25_BUS_SPEED).
How about change it like this:
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c
index a230e7f..670fd7f 100644
--- a/drivers/mmc/core/sd.c
+++ b/drivers/mmc/core/sd.c
@@ -306,7 +306,7 @@ static int mmc_read_switch(struct mmc_card *card)
goto out;
}
- if (status[13] & UHS_SDR50_BUS_SPEED)
+ if (status[13] & SD_MODE_UHS_SDR25)
card->sw_caps.hs_max_dtr = 50000000;
if (card->scr.sda_spec3) {
SDR25 is also 50MHZ, the same frequency as high speed.
Or we can add a new macro for high speed like qiang has done,
which one you prefer?
Thanks,
Aaron
next prev parent reply other threads:[~2011-11-08 9:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-07 9:36 [PATCH] SD/MMC: fix the issue of SDHC performance regression Qiang Liu
2011-11-07 10:08 ` Li Yang-R58472
2011-11-07 13:20 ` Chris Ball
2011-11-08 2:17 ` Liu Qiang-B32616
2011-11-08 9:47 ` Aaron Lu [this message]
2011-11-08 13:37 ` Chris Ball
2011-11-13 16:14 ` Subhash Jadavani
2011-11-13 16:45 ` Chris Ball
2011-11-13 18:11 ` Subhash Jadavani
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=20111108094734.GA1592@ladygaga \
--to=aaron.lu@amd.com \
--cc=b32616@freescale.com \
--cc=cjb@laptop.org \
--cc=kumar.gala@freescale.com \
--cc=leoli@freescale.com \
--cc=linux-mmc@vger.kernel.org \
--cc=subhashj@codeaurora.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