mmc: core: Set card state to ddr in UHS DDR50 mode
Pavan Kunapuli [Thu, 29 Dec 2011 14:50:34 +0000 (19:50 +0530)]
When SD 3.0 cards operate in UHS DDR50 mode, set the
card state to ddr mode to select the proper frequency.

Bug 925326
Reviewed-on: http://git-master/r/72628

Change-Id: I9370ab402eb0c39f603555eccdcb49723ac4910f
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78021
Reviewed-by: Automatic_Commit_Validation_User

drivers/mmc/core/sd.c

index 92bd373..cb2a9d4 100644 (file)
@@ -542,6 +542,8 @@ static int sd_set_bus_speed_mode(struct mmc_card *card, u8 *status)
                        mmc_hostname(card->host));
        else {
                mmc_set_timing(card->host, timing);
+               if (timing == MMC_TIMING_UHS_DDR50)
+                       mmc_card_set_ddr_mode(card);
                mmc_set_clock(card->host, card->sw_caps.uhs_max_dtr);
        }