]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: imx: avic: Convert to using IRQCHIP_DECLARE
authorSaravana Kannan <saravanak@google.com>
Fri, 5 Feb 2021 01:38:46 +0000 (17:38 -0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 15 Mar 2021 04:21:18 +0000 (12:21 +0800)
commit5200709c7f3a29153a74bb936c770bad7612017e
tree13a31a5b1fe53ec8fdec74eb4c27e20241f246f9
parent219c9076286fd92026e818ab1375558e5b20649f
ARM: imx: avic: Convert to using IRQCHIP_DECLARE

Using IRQCHIP_DECLARE lets fw_devlink know that it should not wait for
these interrupt controllers to be populated as struct devices. Without
this change, fw_devlink=on will make the consumers of these interrupt
controllers wait for the struct device to be added and thereby block the
consumers' probes forever. Converting to IRQCHIP_DECLARE addresses boot
issues on imx25 with fw_devlink=on that were reported by Martin.

This also removes a lot of boilerplate code.

Fixes: 396ae27e3004 ("driver core: Set fw_devlink=on by default")
Reported-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Saravana Kannan <saravanak@google.com>
Tested-by: Martin Kaiser <martin@kaiser.cx>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/avic.c
arch/arm/mach-imx/common.h
arch/arm/mach-imx/mach-imx1.c
arch/arm/mach-imx/mach-imx25.c
arch/arm/mach-imx/mach-imx27.c
arch/arm/mach-imx/mach-imx31.c
arch/arm/mach-imx/mach-imx35.c
arch/arm/mach-imx/mm-imx3.c