[PATCH] sdhci: enable CAP support for SD/eMMC/Wifi cards that are =

Philip Rakity prakity at marvell.com
Sun Dec 19 23:23:02 EST 2010


marked permanent

Signed-off-by: Philip Rakity <prakity at marvell.com>
---
 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_d=
evice *pdev)
 	if (pdata->flags & PXA_FLAG_SD_8_BIT_CAPABLE_SLOT)
 		host->mmc->caps |=3D MMC_CAP_8_BIT_DATA;
=20
+	if (pdata->flags & PXA_FLAG_CARD_PERMANENT) {
+		host->mmc->caps |=3D MMC_CAP_NONREMOVABLE;
+		host->quirks |=3D SDHCI_QUIRK_BROKEN_CARD_DETECTION;
+	}
+
 	/* do not rely on u-boot to enable the clocks */
 	enable_clock(host);
=20
--=20
1.6.0.4



--_002_C62C801BBA494DC893C942EC8A69BBB2marvellcom_
Content-Type: application/octet-stream;
	name="0011-sdhci-enable-CAP-support-for-SD-eMMC-Wifi-cards-tha.patch"
Content-Description: 0011-sdhci-enable-CAP-support-for-SD-eMMC-Wifi-cards-tha.patch
Content-Disposition: attachment;
	filename="0011-sdhci-enable-CAP-support-for-SD-eMMC-Wifi-cards-tha.patch";
	size=991; creation-date="Tue, 21 Dec 2010 23:09:19 GMT";
	modification-date="Tue, 21 Dec 2010 23:09:19 GMT"
Content-Transfer-Encoding: base64

RnJvbSAzNmI5MDFjZGU5NGVlYmVjMGVlYjU0YTBmOGUyYTkxMjMyYTg2YmIwIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBQaGlsaXAgUmFraXR5IDxwcmFraXR5QG1hcnZlbGwuY29tPgpE
YXRlOiBTdW4sIDE5IERlYy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