>From 36b901cde94eebec0eeb54a0f8e2a91232a86bb0 Mon Sep 17 00:00:00 2001 From: Philip Rakity <prakity@xxxxxxxxxxx> Date: Sun, 19 Dec 2010 20:23:02 -0800 Subject: [PATCH] sdhci: enable CAP support for SD/eMMC/Wifi cards that are marked permanent Signed-off-by: Philip Rakity <prakity@xxxxxxxxxxx> --- drivers/mmc/host/sdhci-pxa.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sdhci-pxa.c b/drivers/mmc/host/sdhci-pxa.c index 4c2a252..1a58c7b 100644 --- a/drivers/mmc/host/sdhci-pxa.c +++ b/drivers/mmc/host/sdhci-pxa.c @@ -136,6 +136,11 @@ static int __devinit sdhci_pxa_probe(struct platform_device *pdev) if (pdata->flags & PXA_FLAG_SD_8_BIT_CAPABLE_SLOT) host->mmc->caps |= MMC_CAP_8_BIT_DATA; + if (pdata->flags & PXA_FLAG_CARD_PERMANENT) { + host->mmc->caps |= MMC_CAP_NONREMOVABLE; + host->quirks |= SDHCI_QUIRK_BROKEN_CARD_DETECTION; + } + /* do not rely on u-boot to enable the clocks */ enable_clock(host); -- 1.6.0.4
Attachment:
0011-sdhci-enable-CAP-support-for-SD-eMMC-Wifi-cards-tha.patch
Description: 0011-sdhci-enable-CAP-support-for-SD-eMMC-Wifi-cards-tha.patch