public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: mxs-mmc: Add broken-cd devicetree property
@ 2013-04-06 13:43 Alexandre Pereira da Silva
  2013-04-06 13:58 ` Marc Kleine-Budde
  0 siblings, 1 reply; 4+ messages in thread
From: Alexandre Pereira da Silva @ 2013-04-06 13:43 UTC (permalink / raw)
  To: cjb, shawn.guo, marex, fabio.estevam, otavio, broonie, mkl,
	linux-mmc, linux-kernel
  Cc: Alexandre Pereira da Silva

In case of broken card detect support, assume the card is non-removable

Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
---

This patch depends on Marc Kleine-Budde series adding support for non-removable.

 drivers/mmc/host/mxs-mmc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/host/mxs-mmc.c b/drivers/mmc/host/mxs-mmc.c
index c231881..8418928 100644
--- a/drivers/mmc/host/mxs-mmc.c
+++ b/drivers/mmc/host/mxs-mmc.c
@@ -689,7 +689,8 @@ static int mxs_mmc_probe(struct platform_device *pdev)
 		mmc->caps |= MMC_CAP_4_BIT_DATA;
 	else if (bus_width == 8)
 		mmc->caps |= MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA;
-	host->non_removable = of_property_read_bool(np, "non-removable");
+	host->non_removable = of_property_read_bool(np, "non-removable") |
+		of_property_read_bool(np, "broken-cd");
 	if (host->non_removable)
 		mmc->caps |= MMC_CAP_NONREMOVABLE;
 	host->wp_gpio = of_get_named_gpio_flags(np, "wp-gpios", 0, &flags);
-- 
1.7.10

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

end of thread, other threads:[~2013-04-06 15:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-06 13:43 [PATCH] mmc: mxs-mmc: Add broken-cd devicetree property Alexandre Pereira da Silva
2013-04-06 13:58 ` Marc Kleine-Budde
2013-04-06 14:19   ` Alexandre Pereira da Silva
2013-04-06 15:06     ` Marek Vasut

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