mmc: sd: set hs_max_dtr without sda_spec3 dependency
naveenk [Wed, 14 Dec 2011 10:56:01 +0000 (15:56 +0530)]
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>

drivers/mmc/core/sd.c

index 6c709f2..92bd373 100644 (file)
@@ -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);