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>
Sun, 16 Jan 2022 01:00:09 +0000 (02:00 +0100)
commitc61bd43badc5f4e8f0f63f5fc970dd3b4d19707c
tree511a51599a2ad4ae9608ed8ea96503909db5e0ff
parentbe973481daaab7b6549631ea79571532794aedf1
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