linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mmc: Kconfig: Add dependency on GPIOLIB for MMC_SDHCI
@ 2015-08-06  5:39 Michal Simek
  2015-08-25 12:04 ` Ulf Hansson
  0 siblings, 1 reply; 8+ messages in thread
From: Michal Simek @ 2015-08-06  5:39 UTC (permalink / raw)
  To: linux-kernel, monstr
  Cc: sbranden, Weijun Yang, Andrew Bresticker, Jean Delvare,
	Srinivas Kandagatla, linux-mmc, Alim Akhtar, addy ke,
	Stephen Boyd, Chaotian Jing, Kevin Hao, Vincent Yang, Ulf Hansson

Add GPIOLIB dependency for MMC_SDHCI.

Problem was observed after adding the patch
"mmc: sdhci-of-arasan: Call OF parsing for MMC"
(sha1: 16b23787fc709fe60c5d2bd05927b1a3da33d4e9) which calls
mmc_of_parse() -> mmc_gpiod_request_cd() (slot-gpio.c) which
calls devm_gpiod_get_index() which returns -ENOSYS.

Error log:
sdhci-arasan ff160000.sdhci: parsing dt failed (4294967258)
sdhci-arasan: probe of ff160000.sdhci failed with error -38

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

After RFC here https://lkml.org/lkml/2015/7/24/371
adding dependency on MMC_SDHCI.

---
 drivers/mmc/host/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
index fd9a58e216a5..5519803c124b 100644
--- a/drivers/mmc/host/Kconfig
+++ b/drivers/mmc/host/Kconfig
@@ -38,6 +38,7 @@ config MMC_PXA
 config MMC_SDHCI
 	tristate "Secure Digital Host Controller Interface support"
 	depends on HAS_DMA
+	depends on GPIOLIB
 	help
 	  This selects the generic Secure Digital Host Controller Interface.
 	  It is used by manufacturers such as Texas Instruments(R), Ricoh(R)
-- 
2.3.5


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

end of thread, other threads:[~2015-08-27 14:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-06  5:39 [PATCH] mmc: Kconfig: Add dependency on GPIOLIB for MMC_SDHCI Michal Simek
2015-08-25 12:04 ` Ulf Hansson
2015-08-27 11:32   ` Ulf Hansson
2015-08-27 11:43     ` Michal Simek
2015-08-27 12:30       ` Ulf Hansson
2015-08-27 13:43         ` Michal Simek
2015-08-27 14:12           ` Ulf Hansson
2015-08-27 14:26             ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).