pinctrl: sunxi: Mark the irq bank not found in sunxi_pinctrl_irq_handler() with WARN_ON
authorYangtao Li <frank@allwinnertech.com>
Tue, 10 Nov 2020 06:23:44 +0000 (14:23 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 24 Nov 2020 08:40:54 +0000 (09:40 +0100)
commitfd5198dde36af5ae54940c3ea6923fa6459da88c
treec4db04fefb36472d043b20ce0fd76d51edd8b256
parent6de7ed693c631d4689acfe90c434147598d75543
pinctrl: sunxi: Mark the irq bank not found in sunxi_pinctrl_irq_handler() with WARN_ON

The interrupt descriptor cannot be found in the interrupt processing
function, and this situation cannot happen when the system is running
normally. It doesn't seem right to return directly to the status of not
handling gic. In this case, it must be a bug, let's mark it with
WARN_ON.

Signed-off-by: Yangtao Li <frank@allwinnertech.com>
Link: https://lore.kernel.org/r/470ebae22fc5434ad5409c4f6e29255467b3cef6.1604988979.git.frank@allwinnertech.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/pinctrl-sunxi.c