pinctrl: cherryview: Trigger hwirq0 for interrupt-lines without a mapping
authorHans de Goede <hdegoede@redhat.com>
Tue, 4 Jan 2022 16:42:38 +0000 (17:42 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 24 Jan 2022 00:12:45 +0000 (01:12 +0100)
commitaa28514592d52043f4837a6457d6310452135ae1
treec374a41527e27287c3b0efc95edf2c2db4cee5ca
parent25d2e41cf59bd6ccd23adc2965a157053bc3ed5c
pinctrl: cherryview: Trigger hwirq0 for interrupt-lines without a mapping

Commit bdfbef2d29dc ("pinctrl: cherryview: Don't use selection 0 to mark
an interrupt line as unused") made the code properly differentiate
between unset vs (hwirq) 0 entries in the GPIO-controller interrupt-line
to GPIO pinnumber/hwirq mapping.

This is causing some boards to not boot. This commit restores the old
behavior of triggering hwirq 0 when receiving an interrupt on an
interrupt-line for which there is no mapping.

Fixes: bdfbef2d29dc ("pinctrl: cherryview: Don't use selection 0 to mark an interrupt line as unused")
Reported-and-tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Link: https://lore.kernel.org/r/20220104164238.253142-1-hdegoede@redhat.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-cherryview.c