public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: sdhci-pxav3: dt: Support "broken-cd"/"wp-inverted" properties
@ 2012-09-09  3:05 Chris Ball
  2012-09-11 14:29 ` Haojian Zhuang
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Ball @ 2012-09-09  3:05 UTC (permalink / raw)
  To: linux-mmc; +Cc: Philip Rakity, Haojian Zhuang, Zhangfei Gao

Signed-off-by: Chris Ball <cjb@laptop.org>
---
 drivers/mmc/host/sdhci-pxav3.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c
index a553b18..8a9b367 100644
--- a/drivers/mmc/host/sdhci-pxav3.c
+++ b/drivers/mmc/host/sdhci-pxav3.c
@@ -198,6 +198,12 @@ static struct sdhci_pxa_platdata *pxav3_get_mmc_pdata(struct device *dev)
 	if (clk_delay_cycles > 0)
 		pdata->clk_delay_cycles = clk_delay_cycles;
 
+	if (of_find_property(np, "broken-cd", NULL))
+		pdata->quirks |= SDHCI_QUIRK_BROKEN_CARD_DETECTION;
+
+	if (of_find_property(np, "wp-inverted", NULL))
+		pdata->quirks |= SDHCI_QUIRK_INVERTED_WRITE_PROTECT;
+
 	return pdata;
 }
 #else
-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-20  2:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-09  3:05 [PATCH] mmc: sdhci-pxav3: dt: Support "broken-cd"/"wp-inverted" properties Chris Ball
2012-09-11 14:29 ` Haojian Zhuang
2012-09-11 15:02   ` Chris Ball
2012-09-19  8:27     ` [PATCH] mmc: sdhci-pxav3: Use sdhci_get_of_property for parsing DT quirks Chris Ball
2012-09-20  2:06       ` zhangfei gao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox