[PATCH] Enable BUS WIDTH testing for MMC/eMMC cards

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


Signed-off-by: Philip Rakity <prakity at marvell.com>
---
 drivers/mmc/host/sdhci-pxa.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/mmc/host/sdhci-pxa.c b/drivers/mmc/host/sdhci-pxa.c
index 13395d2..5686ca3 100644
--- a/drivers/mmc/host/sdhci-pxa.c
+++ b/drivers/mmc/host/sdhci-pxa.c
@@ -129,6 +129,9 @@ static int __devinit sdhci_pxa_probe(struct platform_de=
vice *pdev)
 	host->irq =3D irq;
 	host->quirks =3D SDHCI_QUIRK_BROKEN_ADMA | SDHCI_QUIRK_BROKEN_TIMEOUT_VAL=
;
=20
+	/* enable mmc bus width testing */
+	host->mmc->caps |=3D MMC_CAP_BUS_WIDTH_TEST;
+
 	/* If slot design supports 8 bit data, indicate this to MMC. */
 	if (pdata->flags & PXA_FLAG_SD_8_BIT_CAPABLE_SLOT)
 		host->mmc->caps |=3D MMC_CAP_8_BIT_DATA;
--=20
1.6.0.4

--_002_2A545D3999AB4EC5BA93643CF18B4D7Dmarvellcom_
Content-Type: application/octet-stream;
	name="0005-Enable-BUS-WIDTH-testing-for-MMC-eMMC-cards.patch"
Content-Description: 0005-Enable-BUS-WIDTH-testing-for-MMC-eMMC-cards.patch
Content-Disposition: attachment;
	filename="0005-Enable-BUS-WIDTH-testing-for-MMC-eMMC-cards.patch"; size=974;
	creation-date="Tue, 21 Dec 2010 23:08:10 GMT";
	modification-date="Tue, 21 Dec 2010 23:08:10 GMT"
Content-Transfer-Encoding: base64

RnJvbSA2NWU3Nzg3YmIxZWEwYmM1YmYyZWZlMWQxZjJmYzQzZWZkZjIxZDEwIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBQaGlsaXAgUmFraXR5IDxwcmFraXR5QG1hcnZlbGwuY29tPgpE
YXRlOiBTdW4sIDE5IERlYyAyMDEw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