linux/drivers/mmc
Ulf Hansson 344fa142dd mmc: core: Don't return an error for CD/WP GPIOs when GPIOLIB is unset
commit 43934ece2e upstream.

When CONFIG_GPIOLIB is unset, its stubs will return -ENOSYS. That means
when the mmc core parses DT for CD/WP GPIOs via mmc_of_parse(), -ENOSYS
becomes propagated to the caller. Typically this means that the mmc host
driver fails to probe.

As the CD/WP GPIOs are already treated as optional, let's extend that to
cover the case when CONFIG_GPIOLIB is unset.

Reported-by: Michal Simek <michal.simek@xilinx.com>
Fixes: 16b23787fc ("mmc: sdhci-of-arasan: Call OF parsing for MMC")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2015-10-22 14:43:25 -07:00
..
card mmc: card: Fixup request missing in mmc_blk_issue_rw_rq 2015-08-03 09:29:15 -07:00
core mmc: core: Don't return an error for CD/WP GPIOs when GPIOLIB is unset 2015-10-22 14:43:25 -07:00
host mmc: sdhci: fix dma memory leak in sdhci_pre_req() 2015-10-22 14:43:24 -07:00
Kconfig mmc: explicitly mention SDIO support in Kconfig 2008-10-12 11:04:36 +02:00
Makefile mmc: sdhci-pci: add platform data 2012-01-11 23:58:47 -05:00