greybus: svc watchdog: Disable watchdog upon entering suspend
authorDavid Lin <dtwlin@google.com>
Fri, 15 Apr 2016 19:45:16 +0000 (01:15 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 15 Apr 2016 21:42:53 +0000 (14:42 -0700)
commit192c70dcf6c6f8c39a108f9ba56e916808f23cca
tree2485a3060358dc3a01a161fe1be0ac93a8322c0e
parent9160b7c7652a80f48250bbdc151fa0af3ccf024f
greybus: svc watchdog: Disable watchdog upon entering suspend

SVC watchdog should be disabled when device is entering suspend mode.

Testing done:
 - Sanity tested on EVT1.5
 - Check no SVC ping during the suspend process
 - Check SVC watchdog is back on pinging once device is resumed

Signed-off-by: David Lin <dtwlin@google.com>
Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
[vaibhav.hiremath@linaro.org: Removed unwanted check in notifier callback and
Updated commit description]
Tested-by: Sandeep Patil <sspatil@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/svc_watchdog.c