linux/drivers/pinctrl/stm32
Arnd Bergmann 49cf2f29ac 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: Arnd Bergmann <arnd@arndb.de>
Fixes: 0eb9f68333 ("pinctrl: Add IRQ support to STM32 gpios")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2016-09-15 14:13:10 +02:00
..
Kconfig pinctrl: stm32: add IRQ_DOMAIN_HIERARCHY dependency 2016-09-15 14:13:10 +02:00
Makefile pinctrl: Add STM32F746 MCU support 2016-07-11 14:35:44 +02:00
pinctrl-stm32.c pinctrl: stm32: constify gpio_chip structures 2016-09-13 10:37:37 +02:00
pinctrl-stm32.h pinctrl: stm32: Remove dependency with DT bindings header files 2016-02-09 10:52:28 +01:00
pinctrl-stm32f429.c pinctrl: stm32: make explicitly non-modular 2016-03-09 10:24:54 +07:00
pinctrl-stm32f746.c pinctrl: Add STM32F746 MCU support 2016-07-11 14:35:44 +02:00