]> git.baikalelectronics.ru Git - kernel.git/commit
x86/platform/intel-mid: Register watchdog device after SCU
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 18 Nov 2016 16:52:24 +0000 (18:52 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 21 Nov 2016 09:59:14 +0000 (10:59 +0100)
commit88d485a4939d06b7e84ef41167ce5e6944ef688e
tree7652cebc9ae0f986500d07379a3f485ee05bcff5
parent790db624f92c12a3eda30b174845e76238c18bc9
x86/platform/intel-mid: Register watchdog device after SCU

Watchdog device in Intel Tangier relies on SCU to be present. It uses the SCU
IPC channel to send commands and receive responses. If watchdog driver is
initialized quite before SCU and a command has been sent the result is always
an error like the following:

intel_mid_wdt: Error stopping watchdog: 0xffffffed

Register watchdog device whne SCU is ready to avoid described issue.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20161118165224.175514-1-andriy.shevchenko@linux.intel.com
[ Small cleanups. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/platform/intel-mid/device_libs/platform_wdt.c