]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit8c5c86fb6abec7d76ec4d51a46714161bceab315
tree7652cebc9ae0f986500d07379a3f485ee05bcff5
parentb22cbe404a9cc3c7949e380fa1861e31934c8978
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