pinctrl: intel: Restore the pins that used to be in Direct IRQ mode
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 6 Feb 2023 14:15:59 +0000 (16:15 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 7 Feb 2023 09:13:51 +0000 (10:13 +0100)
commita8520be3ffef3d25b53bf171a7ebe17ee0154175
tree29529513f43435eb17454ad3c3b9eef2781625d6
parent5921b250f43870e7d8044ca14e402292ceb3e3a8
pinctrl: intel: Restore the pins that used to be in Direct IRQ mode

If the firmware mangled the register contents too much,
check the saved value for the Direct IRQ mode. If it
matches, we will restore the pin state.

Reported-by: Jim Minter <jimminter@microsoft.com>
Fixes: 6989ea4881c8 ("pinctrl: intel: Save and restore pins in "direct IRQ" mode")
Tested-by: Jim Minter <jimminter@microsoft.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Link: https://lore.kernel.org/r/20230206141558.20916-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-intel.c