pinctrl: stm32: Drop the nonexistent CONFIG_MACH_STM32MP25 from the STM32MP257 default
Subsystems (4)
PATCH 1/1 pinctrl: stm32: Drop the nonexistent CONFIG_MACH_STM32MP25 from the STM32MP257 default
Commit 619f8ca4a73d ("pinctrl: stm32: add stm32mp257 pinctrl support") made CONFIG_PINCTRL_STM32MP257 default to MACH_STM32MP25, following the MACH_* pattern of the arm32 entries above it, but no Kconfig symbol of that name exists and git log -S finds no Kconfig file that ever defined
one: the STM32MP25 family is arm64 only, where CONFIG_ARCH_STM32 covers it. Commit dba0aff2b89b ("pinctrl: stm32: Allow compile as module for stm32mp257") added "|| (ARCH_STM32 && ARM64)" next to it, so the first half now evaluates to n and changes no configuration.
Drop the first half.
--- drivers/pinctrl/stm32/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/stm32/Kconfig +1 -1
@@ -55,7 +55,7 @@ config PINCTRL_STM32MP157 config PINCTRL_STM32MP257 tristate "STMicroelectronics STM32MP257 pin control" depends on OF && HAS_IOMEM - default MACH_STM32MP25 || (ARCH_STM32 && ARM64) + default ARCH_STM32 && ARM64 select PINCTRL_STM32 config PINCTRL_STM32_HDP
Signature · 1 line
2.53.0
Quoted 23 lines · Karl Mehltretter
Commit
619f8ca4a73d("pinctrl: stm32: add stm32mp257 pinctrl support") madeCONFIG_PINCTRL_STM32MP257default toMACH_STM32MP25, following the MACH_* pattern of the arm32 entries above it, but noKconfigsymbol of that name exists and git log -S finds noKconfigfile that ever defined
one: the STM32MP25 family is arm64 only, whereCONFIG_ARCH_STM32covers it. Commitdba0aff2b89b("pinctrl: stm32: Allow compile as module for stm32mp257") added "|| (ARCH_STM32&& ARM64)" next to it, so the first half now evaluates to n and changes no configuration.Drop the first half.
Fixes 619f8ca4a73d ("pinctrl: stm32: add stm32mp257 pinctrl support")Assisted-by LLMSigned-off-by Karl Mehltretter <[email protected]>---
drivers/pinctrl/stm32/Kconfig | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/pinctrl/stm32/Kconfig +0
-0@@ -55,7 +55,7 @@ config PINCTRL_STM32MP157
Quoted 8 lines
config
PINCTRL_STM32MP257
tristate "STMicroelectronics STM32MP257 pin control" depends on OF &&HAS_IOMEM
- defaultMACH_STM32MP25|| (ARCH_STM32&& ARM64) + defaultARCH_STM32&& ARM64
selectPINCTRL_STM32
configPINCTRL_STM32_HDP
Thanks,
Antonio
Linus Walleij
maintainerQuoted 9 lines · Karl Mehltretter
Commit
619f8ca4a73d("pinctrl: stm32: add stm32mp257 pinctrl support") madeCONFIG_PINCTRL_STM32MP257default toMACH_STM32MP25, following the MACH_* pattern of the arm32 entries above it, but noKconfigsymbol of that name exists and git log -S finds noKconfigfile that ever defined
one: the STM32MP25 family is arm64 only, whereCONFIG_ARCH_STM32covers it. Commitdba0aff2b89b("pinctrl: stm32: Allow compile as module for stm32mp257") added "|| (ARCH_STM32&& ARM64)" next to it, so the first half now evaluates to n and changes no configuration.
Quoted 5 lines
Drop the first half.
Fixes 619f8ca4a73d ("pinctrl: stm32: add stm32mp257 pinctrl support")Assisted-by LLMSigned-off-by Karl Mehltretter <[email protected]>
Patch applied as nonurgent fix.
Yours,
Linus Walleij