]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00174295-02:[MX6]USDHC: ddr mode is masked on slots with no 1.8v support.
authorRyan QIAN <b32804@freescale.com>
Mon, 13 Feb 2012 01:38:16 +0000 (09:38 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:00 +0000 (08:34 +0200)
- check ocr_avail_sd & MMC_VDD_165_195 before set S18R bit to check whether
the host is support 1.8v support.

Signed-off-by: Ryan QIAN <b32804@freescale.com>
drivers/mmc/core/sd.c

index 9dafabbfa43138ed643925685441f32699b14100..b7d8e369b215fb62f847fd3e5013925df59705a2 100644 (file)
@@ -733,8 +733,9 @@ int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr)
         * If the host supports one of UHS-I modes, request the card
         * to switch to 1.8V signaling level.
         */
-       if (host->caps & (MMC_CAP_UHS_SDR12 | MMC_CAP_UHS_SDR25 |
+       if ((host->caps & (MMC_CAP_UHS_SDR12 | MMC_CAP_UHS_SDR25 |
            MMC_CAP_UHS_SDR50 | MMC_CAP_UHS_SDR104 | MMC_CAP_UHS_DDR50))
+                       && (host->ocr_avail_sd & MMC_VDD_165_195))
                ocr |= SD_OCR_S18R;
 
        /* If the host can supply more than 150mA, XPC should be set to 1. */