From: Scott Branden <sbranden@broadcom.com>
To: Michal Simek <michal.simek@xilinx.com>,
<linux-kernel@vger.kernel.org>, <monstr@monstr.eu>
Cc: Weijun Yang <Weijun.Yang@csr.com>,
Andrew Bresticker <abrestic@chromium.org>,
Jean Delvare <jdelvare@suse.de>,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
<linux-mmc@vger.kernel.org>,
Alim Akhtar <alim.akhtar@samsung.com>,
addy ke <addy.ke@rock-chips.com>,
Stephen Boyd <sboyd@codeaurora.org>,
Chaotian Jing <chaotian.jing@mediatek.com>,
"Georgi Djakov" <gdjakov@mm-sol.com>,
Kevin Hao <haokexin@gmail.com>,
Vincent Yang <vincent.yang.fujitsu@gmail.com>,
Ulf Hansson <ulf.hansson@linaro.org>
Subject: Re: [RFC PATCH] mmc: Kconfig: Add dependency on GPIOLIB for Arasan driver
Date: Mon, 27 Jul 2015 14:55:04 -0700 [thread overview]
Message-ID: <55B6A8B8.3040404@broadcom.com> (raw)
In-Reply-To: <920802cde8579bdfad47baba85d85212735ed90e.1437745991.git.michal.simek@xilinx.com>
Hi Michal,
comment in line
On 15-07-24 06:53 AM, Michal Simek wrote:
> The patch "mmc: sdhci-of-arasan: Call OF parsing for MMC"
> (sha1: 16b23787fc709fe60c5d2bd05927b1a3da33d4e9) introduce new
> dependency on GPIOLIB 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>
> ---
>
> This problem is probably in all others drivers.
> This is one way how this can be solved.
> Maybe better way is to block return value for cd and wp.
It appears there is gpio code in sdhci.c as well. This uses slot-gpio.
Perhaps a depends on needs to be added to MMC_SDHCI instead?
>
> ---
> drivers/mmc/host/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
> index fd9a58e216a5..4b5854759cfc 100644
> --- a/drivers/mmc/host/Kconfig
> +++ b/drivers/mmc/host/Kconfig
> @@ -120,6 +120,7 @@ config MMC_SDHCI_PLTFM
> config MMC_SDHCI_OF_ARASAN
> tristate "SDHCI OF support for the Arasan SDHCI controllers"
> depends on MMC_SDHCI_PLTFM
> + depends on GPIOLIB
> depends on OF
> help
> This selects the Arasan Secure Digital Host Controller Interface
>
next prev parent reply other threads:[~2015-07-27 21:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-24 13:53 Michal Simek
2015-07-27 21:55 ` Scott Branden [this message]
2015-07-28 8:30 ` Michal Simek
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=55B6A8B8.3040404@broadcom.com \
--to=sbranden@broadcom.com \
--cc=Weijun.Yang@csr.com \
--cc=abrestic@chromium.org \
--cc=addy.ke@rock-chips.com \
--cc=alim.akhtar@samsung.com \
--cc=chaotian.jing@mediatek.com \
--cc=gdjakov@mm-sol.com \
--cc=haokexin@gmail.com \
--cc=jdelvare@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=michal.simek@xilinx.com \
--cc=monstr@monstr.eu \
--cc=sboyd@codeaurora.org \
--cc=srinivas.kandagatla@linaro.org \
--cc=ulf.hansson@linaro.org \
--cc=vincent.yang.fujitsu@gmail.com \
/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
Powered by JetHome