From: Jan Glauber <jan.glauber@caviumnetworks.com>
To: David Daney <ddaney@caviumnetworks.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>,
linux-mmc@vger.kernel.org, David Daney <david.daney@cavium.com>,
"Steven J. Hill" <Steven.Hill@cavium.com>
Subject: Re: [PATCH] mmc: cavium: Depend on GPIO driver
Date: Wed, 4 Oct 2017 16:12:38 +0200 [thread overview]
Message-ID: <20171004141238.GA15989@hc> (raw)
In-Reply-To: <b822ae64-42a3-2ffd-a6bd-8534f8c3d46b@caviumnetworks.com>
On Mon, Oct 02, 2017 at 10:06:05AM -0700, David Daney wrote:
> On 10/02/2017 05:02 AM, Jan Glauber wrote:
> >Without the ThunderX/OcteonTx GPIO driver the MMC driver
> >would not power up any MMC devices. Therefore add a
> >dependency to the GPIO driver and remove the unneeded GPIOLIB
> >dependency.
> >
> >Signed-off-by: Jan Glauber <jglauber@cavium.com>
> >---
> > drivers/mmc/host/Kconfig | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> >diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
> >index 8c15637178ff..a47a2f1d8ae4 100644
> >--- a/drivers/mmc/host/Kconfig
> >+++ b/drivers/mmc/host/Kconfig
> >@@ -663,7 +663,7 @@ config MMC_CAVIUM_OCTEON
> > config MMC_CAVIUM_THUNDERX
> > tristate "Cavium ThunderX SD/MMC Card Interface support"
> > depends on PCI && 64BIT && (ARM64 || COMPILE_TEST)
> >- depends on GPIOLIB
> >+ depends on GPIO_THUNDERX
>
> We could just "select" GPIO_THUNDERX instead so that people aren't
> forced to manually unwind all the dependencies.
I thought about select vs. depends, but the Documentation prefers
depends as a select would not automatically enable everything
GPIO_THUNDERX needs. See in Documentation/kbuild/kconfig-language.txt
the note about select.
--Jan
> Also, what do we do if the required GPIO lines are on I2C expanders?
> This patch doesn't help in this hypothetical case. In the end it is
> the responsibility if the system designer to ensure the proper
> drivers are available in their kernels. I think the patch is a step
> in the right direction, but just wanted to note that it doesn't
> cover all possible cases.
>
> In any event, you can add ...:
>
> Acked-by: David Daney <david.daney@cavium.com>
>
> ... to either this version, or an alternative patch that does the
> "select" instead.
>
> Thanks
>
>
> > depends on OF_ADDRESS
> > help
> > This selects Cavium ThunderX SD/MMC Card Interface.
> >
next prev parent reply other threads:[~2017-10-04 14:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-02 12:02 [PATCH] mmc: cavium: Depend on GPIO driver Jan Glauber
2017-10-02 17:06 ` David Daney
2017-10-04 14:12 ` Jan Glauber [this message]
2017-10-04 8:59 ` Ulf Hansson
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=20171004141238.GA15989@hc \
--to=jan.glauber@caviumnetworks.com \
--cc=Steven.Hill@cavium.com \
--cc=david.daney@cavium.com \
--cc=ddaney@caviumnetworks.com \
--cc=linux-mmc@vger.kernel.org \
--cc=ulf.hansson@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.