* [PATCH] pinctrl: bcm63xx: Fix dependencies
@ 2021-03-31 12:47 Linus Walleij
2021-03-31 18:48 ` Randy Dunlap
0 siblings, 1 reply; 4+ messages in thread
From: Linus Walleij @ 2021-03-31 12:47 UTC (permalink / raw)
To: linux-gpio; +Cc: Linus Walleij, Randy Dunlap, Álvaro Fernández Rojas
Add depends on OF so we don't get weird build errors on
randconfig.
Also order selects the same as the other drivers for
pure aestetic reasons.
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
drivers/pinctrl/bcm/Kconfig | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/pinctrl/bcm/Kconfig b/drivers/pinctrl/bcm/Kconfig
index 33660e8fec05..17615674ac1a 100644
--- a/drivers/pinctrl/bcm/Kconfig
+++ b/drivers/pinctrl/bcm/Kconfig
@@ -31,10 +31,12 @@ config PINCTRL_BCM2835
config PINCTRL_BCM63XX
bool
+ depends on OF
+ select PINMUX
+ select PINCONF
select GENERIC_PINCONF
+ select GPIOLIB
select GPIO_REGMAP
- select PINCONF
- select PINMUX
config PINCTRL_BCM6318
bool "Broadcom BCM6318 GPIO driver"
--
2.29.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] pinctrl: bcm63xx: Fix dependencies
2021-03-31 12:47 [PATCH] pinctrl: bcm63xx: Fix dependencies Linus Walleij
@ 2021-03-31 18:48 ` Randy Dunlap
2021-04-01 17:47 ` [PATCH] pinctrl: bcm63xx: Fix More dependencies Randy Dunlap
0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2021-03-31 18:48 UTC (permalink / raw)
To: Linus Walleij, linux-gpio; +Cc: Álvaro Fernández Rojas
On 3/31/21 5:47 AM, Linus Walleij wrote:
> Add depends on OF so we don't get weird build errors on
> randconfig.
>
> Also order selects the same as the other drivers for
> pure aestetic reasons.
>
> Reported-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Álvaro Fernández Rojas <noltari@gmail.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> drivers/pinctrl/bcm/Kconfig | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/pinctrl/bcm/Kconfig b/drivers/pinctrl/bcm/Kconfig
> index 33660e8fec05..17615674ac1a 100644
> --- a/drivers/pinctrl/bcm/Kconfig
> +++ b/drivers/pinctrl/bcm/Kconfig
> @@ -31,10 +31,12 @@ config PINCTRL_BCM2835
>
> config PINCTRL_BCM63XX
> bool
> + depends on OF
> + select PINMUX
> + select PINCONF
> select GENERIC_PINCONF
> + select GPIOLIB
> select GPIO_REGMAP
> - select PINCONF
> - select PINMUX
>
> config PINCTRL_BCM6318
> bool "Broadcom BCM6318 GPIO driver"
>
That gives me:
WARNING: unmet direct dependencies detected for PINCTRL_BCM63XX
Depends on [n]: PINCTRL [=y] && OF [=n]
Selected by [y]:
- PINCTRL_BCM6328 [=y] && PINCTRL [=y] && (BMIPS_GENERIC || COMPILE_TEST [=y])
- PINCTRL_BCM6358 [=y] && PINCTRL [=y] && (BMIPS_GENERIC || COMPILE_TEST [=y])
- PINCTRL_BCM6362 [=y] && PINCTRL [=y] && (BMIPS_GENERIC || COMPILE_TEST [=y])
- PINCTRL_BCM63268 [=y] && PINCTRL [=y] && (BMIPS_GENERIC || COMPILE_TEST [=y])
and
ld: drivers/pinctrl/bcm/pinctrl-bcm6328.o: in function `pinconf_generic_dt_node_to_map_pin':
pinctrl-bcm6328.c:(.text+0xe7): undefined reference to `pinconf_generic_dt_node_to_map'
ld: drivers/pinctrl/bcm/pinctrl-bcm6358.o: in function `pinconf_generic_dt_node_to_map_pin':
pinctrl-bcm6358.c:(.text+0x207): undefined reference to `pinconf_generic_dt_node_to_map'
ld: drivers/pinctrl/bcm/pinctrl-bcm6362.o: in function `pinconf_generic_dt_node_to_map_pin':
pinctrl-bcm6362.c:(.text+0xe7): undefined reference to `pinconf_generic_dt_node_to_map'
ld: drivers/pinctrl/bcm/pinctrl-bcm63268.o: in function `pinconf_generic_dt_node_to_map_pin':
pinctrl-bcm63268.c:(.text+0xe7): undefined reference to `pinconf_generic_dt_node_to_map'
--
~Randy
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] pinctrl: bcm63xx: Fix More dependencies
2021-03-31 18:48 ` Randy Dunlap
@ 2021-04-01 17:47 ` Randy Dunlap
2021-04-07 12:50 ` Linus Walleij
0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2021-04-01 17:47 UTC (permalink / raw)
To: Linus Walleij, linux-gpio; +Cc: Álvaro Fernández Rojas
On 3/31/21 11:48 AM, Randy Dunlap wrote:
> On 3/31/21 5:47 AM, Linus Walleij wrote:
>> Add depends on OF so we don't get weird build errors on
>> randconfig.
>>
>> Also order selects the same as the other drivers for
>> pure aestetic reasons.
>>
>> Reported-by: Randy Dunlap <rdunlap@infradead.org>
>> Cc: Álvaro Fernández Rojas <noltari@gmail.com>
>> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
>> ---
>> drivers/pinctrl/bcm/Kconfig | 6 ++++--
>> 1 file changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/pinctrl/bcm/Kconfig b/drivers/pinctrl/bcm/Kconfig
>> index 33660e8fec05..17615674ac1a 100644
>> --- a/drivers/pinctrl/bcm/Kconfig
>> +++ b/drivers/pinctrl/bcm/Kconfig
>> @@ -31,10 +31,12 @@ config PINCTRL_BCM2835
>>
>> config PINCTRL_BCM63XX
>> bool
>> + depends on OF
>> + select PINMUX
>> + select PINCONF
>> select GENERIC_PINCONF
>> + select GPIOLIB
>> select GPIO_REGMAP
>> - select PINCONF
>> - select PINMUX
>>
>> config PINCTRL_BCM6318
>> bool "Broadcom BCM6318 GPIO driver"
>>
>
> That gives me:
>
> WARNING: unmet direct dependencies detected for PINCTRL_BCM63XX
> Depends on [n]: PINCTRL [=y] && OF [=n]
> Selected by [y]:
> - PINCTRL_BCM6328 [=y] && PINCTRL [=y] && (BMIPS_GENERIC || COMPILE_TEST [=y])
> - PINCTRL_BCM6358 [=y] && PINCTRL [=y] && (BMIPS_GENERIC || COMPILE_TEST [=y])
> - PINCTRL_BCM6362 [=y] && PINCTRL [=y] && (BMIPS_GENERIC || COMPILE_TEST [=y])
> - PINCTRL_BCM63268 [=y] && PINCTRL [=y] && (BMIPS_GENERIC || COMPILE_TEST [=y])
>
> and
>
> ld: drivers/pinctrl/bcm/pinctrl-bcm6328.o: in function `pinconf_generic_dt_node_to_map_pin':
> pinctrl-bcm6328.c:(.text+0xe7): undefined reference to `pinconf_generic_dt_node_to_map'
> ld: drivers/pinctrl/bcm/pinctrl-bcm6358.o: in function `pinconf_generic_dt_node_to_map_pin':
> pinctrl-bcm6358.c:(.text+0x207): undefined reference to `pinconf_generic_dt_node_to_map'
> ld: drivers/pinctrl/bcm/pinctrl-bcm6362.o: in function `pinconf_generic_dt_node_to_map_pin':
> pinctrl-bcm6362.c:(.text+0xe7): undefined reference to `pinconf_generic_dt_node_to_map'
> ld: drivers/pinctrl/bcm/pinctrl-bcm63268.o: in function `pinconf_generic_dt_node_to_map_pin':
> pinctrl-bcm63268.c:(.text+0xe7): undefined reference to `pinconf_generic_dt_node_to_map'
The additional patch below fixes all of the kconfig warnings and build errors
for me.
---
From: Randy Dunlap <rdunlap@infradead.org>
Subject: [PATCH -next] pinctrl: bcm: fix bcx63xx build errors
All of the drivers that select PINCTRL_BCM63XX also should depend on
OF since 'select' does not follow any dependency chains and there
can still be kconfig warnings and build errors without this.
pinctrl-bcm6328.c:(.text+0xe7): undefined reference to `pinconf_generic_dt_node_to_map'
pinctrl-bcm6358.c:(.text+0x207): undefined reference to `pinconf_generic_dt_node_to_map'
pinctrl-bcm6362.c:(.text+0xe7): undefined reference to `pinconf_generic_dt_node_to_map'
pinctrl-bcm63268.c:(.text+0xe7): undefined reference to `pinconf_generic_dt_node_to_map'
WARNING: unmet direct dependencies detected for PINCTRL_BCM63XX
Depends on [n]: PINCTRL [=y] && OF [=n]
Selected by [y]:
- PINCTRL_BCM6328 [=y] && PINCTRL [=y] && (BMIPS_GENERIC || COMPILE_TEST [=y])
- PINCTRL_BCM6358 [=y] && PINCTRL [=y] && (BMIPS_GENERIC || COMPILE_TEST [=y])
- PINCTRL_BCM6362 [=y] && PINCTRL [=y] && (BMIPS_GENERIC || COMPILE_TEST [=y])
- PINCTRL_BCM63268 [=y] && PINCTRL [=y] && (BMIPS_GENERIC || COMPILE_TEST [=y])
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Álvaro Fernández Rojas <noltari@gmail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
---
drivers/pinctrl/bcm/Kconfig | 6 ++++++
1 file changed, 6 insertions(+)
--- linux-next-20210331.orig/drivers/pinctrl/bcm/Kconfig
+++ linux-next-20210331/drivers/pinctrl/bcm/Kconfig
@@ -41,6 +41,7 @@ config PINCTRL_BCM63XX
config PINCTRL_BCM6318
bool "Broadcom BCM6318 GPIO driver"
depends on (BMIPS_GENERIC || COMPILE_TEST)
+ depends on OF
select PINCTRL_BCM63XX
default BMIPS_GENERIC
help
@@ -49,6 +50,7 @@ config PINCTRL_BCM6318
config PINCTRL_BCM6328
bool "Broadcom BCM6328 GPIO driver"
depends on (BMIPS_GENERIC || COMPILE_TEST)
+ depends on OF
select PINCTRL_BCM63XX
default BMIPS_GENERIC
help
@@ -57,6 +59,7 @@ config PINCTRL_BCM6328
config PINCTRL_BCM6358
bool "Broadcom BCM6358 GPIO driver"
depends on (BMIPS_GENERIC || COMPILE_TEST)
+ depends on OF
select PINCTRL_BCM63XX
default BMIPS_GENERIC
help
@@ -65,6 +68,7 @@ config PINCTRL_BCM6358
config PINCTRL_BCM6362
bool "Broadcom BCM6362 GPIO driver"
depends on (BMIPS_GENERIC || COMPILE_TEST)
+ depends on OF
select PINCTRL_BCM63XX
default BMIPS_GENERIC
help
@@ -73,6 +77,7 @@ config PINCTRL_BCM6362
config PINCTRL_BCM6368
bool "Broadcom BCM6368 GPIO driver"
depends on (BMIPS_GENERIC || COMPILE_TEST)
+ depends on OF
select PINCTRL_BCM63XX
default BMIPS_GENERIC
help
@@ -81,6 +86,7 @@ config PINCTRL_BCM6368
config PINCTRL_BCM63268
bool "Broadcom BCM63268 GPIO driver"
depends on (BMIPS_GENERIC || COMPILE_TEST)
+ depends on OF
select PINCTRL_BCM63XX
default BMIPS_GENERIC
help
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] pinctrl: bcm63xx: Fix More dependencies
2021-04-01 17:47 ` [PATCH] pinctrl: bcm63xx: Fix More dependencies Randy Dunlap
@ 2021-04-07 12:50 ` Linus Walleij
0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2021-04-07 12:50 UTC (permalink / raw)
To: Randy Dunlap; +Cc: open list:GPIO SUBSYSTEM, Álvaro Fernández Rojas
On Thu, Apr 1, 2021 at 7:47 PM Randy Dunlap <rdunlap@infradead.org> wrote:
> From: Randy Dunlap <rdunlap@infradead.org>
> Subject: [PATCH -next] pinctrl: bcm: fix bcx63xx build errors
>
> All of the drivers that select PINCTRL_BCM63XX also should depend on
> OF since 'select' does not follow any dependency chains and there
> can still be kconfig warnings and build errors without this.
I applied a version of this patch where I also drop the depend on OF
from the BCM63xx Kconfig, it is better to depend on OF for each
driver.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-04-07 12:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-31 12:47 [PATCH] pinctrl: bcm63xx: Fix dependencies Linus Walleij
2021-03-31 18:48 ` Randy Dunlap
2021-04-01 17:47 ` [PATCH] pinctrl: bcm63xx: Fix More dependencies Randy Dunlap
2021-04-07 12:50 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).