<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 6, 2015 at 7:12 PM, Suman Tripathi <span dir="ltr"><<a href="mailto:stripathi@apm.com" target="_blank">stripathi@apm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The sdhci framework disables SDR104/SDR50/DDR50 based on only quirk.<br>
This patch adds the support to disable SDR104/SDR50/DDR50 based on<br>
reading the capability register 0.<br>
<br>
Signed-off-by: Suman Tripathi <<a href="mailto:stripathi@apm.com">stripathi@apm.com</a>><br>
---<br>
drivers/mmc/host/sdhci.c | 3 ++-<br>
1 file changed, 2 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c<br>
index c80287a..e024c64 100644<br>
--- a/drivers/mmc/host/sdhci.c<br>
+++ b/drivers/mmc/host/sdhci.c<br>
@@ -3199,7 +3199,8 @@ int sdhci_add_host(struct sdhci_host *host)<br>
}<br>
}<br>
<br>
- if (host->quirks2 & SDHCI_QUIRK2_NO_1_8_V)<br>
+ if (host->quirks2 & SDHCI_QUIRK2_NO_1_8_V ||<br>
+ !(caps[0] & SDHCI_CAN_VDD_180))<br>
caps[1] &= ~(SDHCI_SUPPORT_SDR104 | SDHCI_SUPPORT_SDR50 |<br>
SDHCI_SUPPORT_DDR50);<br>
<br>
--<br>
1.8.2.1<br>
<br>
</blockquote></div><div class="gmail_extra"><br></div>Any comments on this patch ??<br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Thanks,</div><div>with regards,</div>Suman Tripathi</div></div>
</div></div>