[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200807062201.25194.mb@bu3sch.de>
Date: Sun, 6 Jul 2008 22:01:24 +0200
From: Michael Buesch <mb@...sch.de>
To: Adrian Bunk <bunk@...nel.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Stephen Rothwell <sfr@...b.auug.org.au>,
linux-kernel@...r.kernel.org, David Brownell <david-b@...bell.net>
Subject: Re: [PATCH v2] gpiolib: Allow user-selection
On Sunday 06 July 2008 21:52:12 Adrian Bunk wrote:
> > +menuconfig GPIOLIB
> > + bool "GPIO Support"
> > + depends on ARCH_WANT_OPTIONAL_GPIOLIB || ARCH_REQUIRE_GPIOLIB
> > + select GENERIC_GPIO
> > + help
> > + This enables GPIO support through the generic GPIO library.
> > + You only need to enable this, if you also want to enable
> > + one or more of the GPIO expansion card drivers below.
> > +
> > + If unsure, say N.
> >...
>
> The implementation of ARCH_REQUIRE_GPIOLIB does not match the description.
>
> Matching the description would be:
>
> menuconfig GPIOLIB
> bool "GPIO Support" if !ARCH_REQUIRE_GPIOLIB
> depends on ARCH_WANT_OPTIONAL_GPIOLIB || ARCH_REQUIRE_GPIOLIB
> default ARCH_REQUIRE_GPIOLIB
> select GENERIC_GPIO
> help
> ...
So well. I'm not sure what you're talking about. Care to make
a better helptext?
> > --- linux-next.orig/arch/arm/configs/am200epdkit_defconfig 2008-07-03 11:31:05.000000000 +0200
> > +++ linux-next/arch/arm/configs/am200epdkit_defconfig 2008-07-03 11:36:14.000000000 +0200
> > @@ -668,7 +668,7 @@
> > #
> > # CONFIG_SPI is not set
> > # CONFIG_SPI_MASTER is not set
> > -CONFIG_HAVE_GPIO_LIB=y
> > +CONFIG_ARCH_REQUIRE_GPIOLIB=y
> >...
>
> Please don't do this kind of defconfig updates - it doesn't bring any
> advantage but can create tons of patch conflicts.
>
> The next time a defconfig gets updated it will anyway automatically be
> fixed, and for defconfigs that aren't updated it doesn't create any
> problems to keep them as they are today until they might one day get
> updated.
So will the auto-regenerated defconfig result in CONFIG_ARCH_REQUIRE_GPIOLIB=y
or CONFIG_ARCH_REQUIRE_GPIOLIB=n? I thought it would result in =n, as the
option defaults to n. So I changed all defconfigs.
(I think these (sub)archs should "select" the option in their Kconfig, but I
didn't want to go down that way).
--
Greetings Michael.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists