From: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
To: cjb@laptop.org, shawn.guo@linaro.org, marex@denx.de,
fabio.estevam@freescale.com, otavio@ossystems.com.br,
broonie@opensource.wolfsonmicro.com, mkl@pengutronix.de,
linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
Subject: [PATCH] mmc: mxs-mmc: Add broken-cd devicetree property
Date: Sat, 6 Apr 2013 10:43:48 -0300 [thread overview]
Message-ID: <1365255828-6416-1-git-send-email-aletes.xgr@gmail.com> (raw)
In-Reply-To: 1365166070-9370-3-git-send-email-mkl@pengutronix.de
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
next reply other threads:[~2013-04-06 13:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-06 13:43 Alexandre Pereira da Silva [this message]
2013-04-06 13:58 ` [PATCH] mmc: mxs-mmc: Add broken-cd devicetree property Marc Kleine-Budde
2013-04-06 14:19 ` Alexandre Pereira da Silva
2013-04-06 15:06 ` Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1365255828-6416-1-git-send-email-aletes.xgr@gmail.com \
--to=aletes.xgr@gmail.com \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=cjb@laptop.org \
--cc=fabio.estevam@freescale.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=marex@denx.de \
--cc=mkl@pengutronix.de \
--cc=otavio@ossystems.com.br \
--cc=shawn.guo@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox