Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49cf2f29 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Linus Walleij
Browse files

pinctrl: stm32: add IRQ_DOMAIN_HIERARCHY dependency



The newly added irqchip support for the stm32 pinctrl driver uses
hierarchical IRQ domains as provided by the NVIC primary irqchip.
This works great for any configuration that may be relevant on
stm32, but when doing compile-testing (randconfig), we can
enable it without NVIC or any other primary irqchip that
enables IRQ_DOMAIN_HIERARCHY:

drivers/pinctrl/stm32/pinctrl-stm32.c:212:13: error: 'irq_chip_eoi_parent' undeclared here (not in a function)
drivers/pinctrl/stm32/pinctrl-stm32.c:213:20: error: 'irq_chip_mask_parent' undeclared here (not in a function)
drivers/pinctrl/stm32/pinctrl-stm32.c:214:20: error: 'irq_chip_unmask_parent' undeclared here (not in a function)
drivers/pinctrl/stm32/pinctrl-stm32.c:215:20: error: 'irq_chip_set_type_parent' undeclared here (not in a function)

This adds a Kconfig dependency to limit compile-testing to
configurations that have IRQ_DOMAIN_HIERARCHY already enabled.
It's not obvious whether we should use 'depends on' or 'select'
here, I think either one works, with 'depends on' being more
intuitive, while 'select' would be less likely to cause dependency
loops.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Fixes: 0eb9f683 ("pinctrl: Add IRQ support to STM32 gpios")
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 6812f19e
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -10,13 +10,13 @@ config PINCTRL_STM32


config PINCTRL_STM32F429
config PINCTRL_STM32F429
	bool "STMicroelectronics STM32F429 pin control" if COMPILE_TEST && !MACH_STM32F429
	bool "STMicroelectronics STM32F429 pin control" if COMPILE_TEST && !MACH_STM32F429
	depends on OF
	depends on OF && IRQ_DOMAIN_HIERARCHY
	default MACH_STM32F429
	default MACH_STM32F429
	select PINCTRL_STM32
	select PINCTRL_STM32


config PINCTRL_STM32F746
config PINCTRL_STM32F746
	bool "STMicroelectronics STM32F746 pin control" if COMPILE_TEST && !MACH_STM32F746
	bool "STMicroelectronics STM32F746 pin control" if COMPILE_TEST && !MACH_STM32F746
	depends on OF
	depends on OF && IRQ_DOMAIN_HIERARCHY
	default MACH_STM32F746
	default MACH_STM32F746
	select PINCTRL_STM32
	select PINCTRL_STM32