Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1417050

[RFC PATCH 2/4] mmc: core: expose MMC_CAP2_NO_SDIO to dt-binding

From Shawn Lin <shawn.lin@rock-chips.com>
Newsgroups linux.kernel
Subject [RFC PATCH 2/4] mmc: core: expose MMC_CAP2_NO_SDIO to dt-binding
Date 2016-06-08 10:30 +0200
Message-ID <rHH2a-6b9-21@gated-at.bofh.it> (permalink)
References <rHH29-6b9-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Add cap-no-sdio property, so we can use MMC_CAP2_NO_SDIO
for different slots from dt.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
---

 drivers/mmc/core/host.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
index d7e86f9..933eeea 100644
--- a/drivers/mmc/core/host.c
+++ b/drivers/mmc/core/host.c
@@ -296,6 +296,8 @@ int mmc_of_parse(struct mmc_host *host)
 		host->caps |= MMC_CAP_SDIO_IRQ;
 	if (of_property_read_bool(np, "full-pwr-cycle"))
 		host->caps2 |= MMC_CAP2_FULL_PWR_CYCLE;
+	if (of_property_read_bool(np, "cap-no-sdio"))
+		host->caps2 |= MMC_CAP2_NO_SDIO;
 	if (of_property_read_bool(np, "keep-power-in-suspend"))
 		host->pm_caps |= MMC_PM_KEEP_POWER;
 	if (of_property_read_bool(np, "wakeup-source") ||
-- 
2.3.7

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[RFC PATCH 0/4] Introduce new caps to improve the card's init sequence Shawn Lin <shawn.lin@rock-chips.com> - 2016-06-08 10:30 +0200
  [RFC PATCH 3/4] mmc: core: add cap-no-sd and cap-no-mmc properties Shawn Lin <shawn.lin@rock-chips.com> - 2016-06-08 10:30 +0200
  [RFC PATCH 2/4] mmc: core: expose MMC_CAP2_NO_SDIO to dt-binding Shawn Lin <shawn.lin@rock-chips.com> - 2016-06-08 10:30 +0200

csiph-web