summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core
diff options
context:
space:
mode:
authorQiang Liu2011-11-08 14:43:08 +0100
committerChris Ball2012-01-12 05:58:40 +0100
commitfffe5d5aa05b4e69f79bc75a51c5ee0fc6203fa5 (patch)
tree14dc8ca78f108faf20057a8853df216701621ad6 /drivers/mmc/core
parentm68k: remove duplicate asm offset for task thread.info (diff)
downloadkernel-qcow2-linux-fffe5d5aa05b4e69f79bc75a51c5ee0fc6203fa5.tar.gz
kernel-qcow2-linux-fffe5d5aa05b4e69f79bc75a51c5ee0fc6203fa5.tar.xz
kernel-qcow2-linux-fffe5d5aa05b4e69f79bc75a51c5ee0fc6203fa5.zip
mmc: sd: Macro name cleanup for high speed dtr
Add new macros for the high speed 50MHz case, rather than having a confusing reuse of the value for UHS SDR50, which is 100MHz. Reported-by: Aaron Lu <aaron.lu@amd.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/core')
-rw-r--r--drivers/mmc/core/sd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c
index f2a05ea40f2a..f54392c4638a 100644
--- a/drivers/mmc/core/sd.c
+++ b/drivers/mmc/core/sd.c
@@ -307,8 +307,8 @@ static int mmc_read_switch(struct mmc_card *card)
goto out;
}
- if (status[13] & UHS_SDR50_BUS_SPEED)
- card->sw_caps.hs_max_dtr = 50000000;
+ if (status[13] & SD_MODE_HIGH_SPEED)
+ card->sw_caps.hs_max_dtr = HIGH_SPEED_MAX_DTR;
if (card->scr.sda_spec3) {
card->sw_caps.sd3_bus_mode = status[13];