]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: intel-mid_wdt: Postpone IRQ handler registration till SCU is ready
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 23 Oct 2020 16:33:02 +0000 (19:33 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 25 Jan 2021 18:05:32 +0000 (20:05 +0200)
commit615e55017a993fec696995dca51a6ad661d3bc62
tree5656a0d0ccff139469a3e4724fe847b494b424ee
parent3c12891dc80a2f045c4a9f75ad459e10a101730a
watchdog: intel-mid_wdt: Postpone IRQ handler registration till SCU is ready

When SCU is not ready and CONFIG_DEBUG_SHIRQ=y we got deferred probe followed
by fired test IRQ which immediately makes kernel panic. Fix this by delaying
IRQ handler registration till SCU is ready.

Fixes: 405dd84dea83 ("watchdog: intel-mid_wdt: Convert to use new SCU IPC API")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/watchdog/intel-mid_wdt.c