diff options
author | naveenk <naveenk@nvidia.com> | 2011-12-14 16:26:01 +0530 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2011-12-21 12:06:23 +0530 |
commit | 144bb871fcd8d7e80ad5cd01ee9a6bd3f8db2f9c (patch) | |
tree | 4f4ea8fbbd472dc9676c5c884f4734b4e5bfaf36 /drivers/mmc/core/sd.c | |
parent | 6b8f0a7f661a54b776eec538b9cb0a7a2947f2b8 (diff) |
mmc: sd: set hs_max_dtr without sda_spec3 dependency
some sd 2.0 cards have sda_spec3 bit set due to which
hs_max_dtr is not set and the card operates at lower
frequency.
fixed this by setting hs_max_dtr without sda_spec3
dependency.
Bug 914869
Signed-off-by: naveenk <naveenk@nvidia.com>
Change-Id: I1624c0864f4f07cee5ea044f43e39c4336723e83
Reviewed-on: http://git-master/r/70009
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/mmc/core/sd.c')
-rw-r--r-- | drivers/mmc/core/sd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c index 6c709f29c9d0..92bd3737c4b0 100644 --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c @@ -348,11 +348,11 @@ static int mmc_read_switch(struct mmc_card *card) } card->sw_caps.sd3_curr_limit = status[7]; - } else { - if (status[13] & 0x02) - card->sw_caps.hs_max_dtr = 50000000; } + if (status[13] & 0x02) + card->sw_caps.hs_max_dtr = 50000000; + out: kfree(status); |