From: Takashi Iwai <tiwai@suse.de>
To: Dmitry Baryshkov <dbaryshkov@gmail.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>,
David Brownell <david-b@pacbell.net>,
linux-next@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] fix build error of driver/mfd/tc6393xb.c
Date: Fri, 04 Jul 2008 18:47:49 +0200 [thread overview]
Message-ID: <s5hprptk34a.wl%tiwai@suse.de> (raw)
In-Reply-To: <20080704152708.GA12382@doriath.ww600.siemens.net>
At Fri, 4 Jul 2008 19:27:08 +0400,
Dmitry Baryshkov wrote:
>
> On Fri, Jul 04, 2008 at 05:24:52PM +0200, Takashi Iwai wrote:
> > At Fri, 4 Jul 2008 18:22:08 +0400,
> > Dmitry Baryshkov wrote:
> > >
> > > On Fri, Jul 04, 2008 at 03:59:54PM +0200, Takashi Iwai wrote:
> > > > At Fri, 4 Jul 2008 17:22:35 +0400,
> > > > Dmitry Baryshkov wrote:
> > > > >
> > > > > On Fri, Jul 04, 2008 at 02:59:18PM +0200, Takashi Iwai wrote:
> > > > > > At Fri, 4 Jul 2008 16:42:56 +0400,
> > > > > > Dmitry Baryshkov wrote:
> > > > > > >
> > > > > > > On Fri, Jul 04, 2008 at 02:04:30PM +0200, Takashi Iwai wrote:
> > > > > > > > At Fri, 4 Jul 2008 15:47:55 +0400,
> > > > > > > > Dmitry Baryshkov wrote:
> > > > > > > > >
> > > > > > > > > On Fri, Jul 04, 2008 at 01:20:42PM +0200, Takashi Iwai wrote:
> > > > > > > > > > Fix the build of tc6393xb due to missing definition of struct
> > > > > > > > > > gpio_chip.
> > > > > > > > > >
> > > > > > > > > > Signed-off-by: Takashi Iwai <tiwai@suse.de>
> > > > > > > > > >
> > > > > > > > > > ---
> > > > > > > > > > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> > > > > > > > > > index 9f93c29..2981da4 100644
> > > > > > > > > > --- a/drivers/mfd/Kconfig
> > > > > > > > > > +++ b/drivers/mfd/Kconfig
> > > > > > > > > > @@ -44,7 +44,7 @@ config HTC_PASIC3
> > > > > > > > > >
> > > > > > > > > > config MFD_TC6393XB
> > > > > > > > > > bool "Support Toshiba TC6393XB"
> > > > > > > > > > - depends on HAVE_GPIO_LIB
> > > > > > > > > > + depends on HAVE_GPIO_LIB && GENERIC_GPIO
> > > > > > > > > > select MFD_CORE
> > > > > > > > > > help
> > > > > > > > > > Support for Toshiba Mobile IO Controller TC6393XB
> > > > > > > > >
> > > > > > > > > Which configuration does provide HAVE_GPIO_LIB but not GENERIC_GPIO?
> > > > > > > >
> > > > > > > > The below is the config with which I got the error.
> > > > > > >
> > > > > > > The proper fix probably is to make PPC_MPC5200_GPIO also select
> > > > > > > GENERIC_GPIO. I don't think that building GPIO_LIB w/o GENERIC_GPIO
> > > > > > > should be supported.
> > > > > >
> > > > > > [Added David to Cc]
> > > > > >
> > > > > > Then HAVE_GPIO_LIB should depend on GENERIC_GPIO.
> > > > > > Or, linux/gpio.h should be fixed so that the code can be built
> > > > > > properly without GENERIC_GPIO.
> > > > >
> > > > > IIRC selected symbols don't propagate their depends.
> > > >
> > > > Then HAVE_GPIO_LIB selects GENERIC_GPIO. Right now, it's a missing
> > > > dependency.
> > >
> > > Please submit a patch where HAVE_GPIO_LIB selects GENERIC_GPIO.
> >
> > Hmm... just checking again, I found GENERIC_GPIO isn't defined in
> > drivers/gpio/Kconfig but in each arch Kconfig. So we can't select it
> > unconditionally.
> >
> > I'm not sure whether it's a better fix at this moment.
>
> Then we probably should move GENERIC_GPIO to drivers/gpio/Kconfig, allow
> it to be selected from arch code which doesn't know anything about
> gpiolib and allow it to be selected by HAVE_GPIO_LIB?
Seconded. But, I'd like to have a comment from GPIO guys before
moving on.
Takashi
next prev parent reply other threads:[~2008-07-04 16:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-04 11:20 [PATCH] fix build error of driver/mfd/tc6393xb.c Takashi Iwai
2008-07-04 11:47 ` Dmitry Baryshkov
2008-07-04 12:04 ` Takashi Iwai
2008-07-04 12:42 ` Dmitry Baryshkov
2008-07-04 12:59 ` Takashi Iwai
2008-07-04 13:22 ` Dmitry Baryshkov
2008-07-04 13:59 ` Takashi Iwai
2008-07-04 14:22 ` Dmitry Baryshkov
2008-07-04 15:24 ` Takashi Iwai
2008-07-04 15:27 ` Dmitry Baryshkov
2008-07-04 16:47 ` Takashi Iwai [this message]
2008-07-04 16:54 ` David Brownell
2008-07-05 8:31 ` Dmitry Baryshkov
2008-07-05 17:13 ` David Brownell
2008-07-07 16:09 ` Takashi Iwai
2008-07-07 16:19 ` David Brownell
2008-07-07 16:23 ` Takashi Iwai
2008-07-04 16:52 ` David Brownell
2008-07-04 16:50 ` David Brownell
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=s5hprptk34a.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=david-b@pacbell.net \
--cc=dbaryshkov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
/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.