Thread (8 messages) 8 messages, 3 authors, 2014-01-02

Re: [PATCH] gpio: xtensa: depend on HAVE_XTENSA_GPIO32

From: Linus Walleij <hidden>
Date: 2014-01-02 13:21:13

On Thu, Jan 2, 2014 at 1:18 PM, Baruch Siach [off-list ref] wrote:
On Thu, Jan 02, 2014 at 01:07:24PM +0100, Linus Walleij wrote:
quoted
On Mon, Dec 16, 2013 at 8:05 AM, Baruch Siach [off-list ref] wrote:
quoted
Prevent build failure when the selected variant does not support GPIO32.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
(...)
quoted
+config HAVE_XTENSA_GPIO32
+       bool
+
 config GPIO_XTENSA
        bool "Xtensa GPIO32 support"
        depends on XTENSA
+       depends on HAVE_XTENSA_GPIO32
This is just a tautology, you don't need a helper bool
for this.

Instead just select GPIO_XTENSA from your affected
platforms.
But then you force this driver on all users. Why not leave the option to
disable this driver when the user needs direct access to this hardware, or
just wants to remove unused code?
Hmm you're right. But if the build fails on !XTENSA, can you not
put a

depends on XTENSA_VARIANT_FSF || XTENSA_VARIANT_DC232B || XTENSA_VARIANT_DC233C

Into drivers/gpio/Kconfig?

It's a simple oneliner...

Usually the only reason not to do this would be to get a wider compile
coverage but the patch says it only compiles on these platforms
anyway :-P

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help