]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: svc: add a "watchdog" to check the network health
authorGreg Kroah-Hartman <gregkh@google.com>
Thu, 21 Jan 2016 06:51:49 +0000 (22:51 -0800)
committerGreg Kroah-Hartman <gregkh@google.com>
Sun, 24 Jan 2016 01:38:33 +0000 (17:38 -0800)
commited7279ae31b0a0a97e832bdd0eb6edb31ec2736f
treee10ffdca830b3e6ba3189e7f66e9cfdd7f345278
parent0f65fb1ea268a7268ab97a92d172d26d960a5d92
greybus: svc: add a "watchdog" to check the network health

Now that we have a svc ping command, let's add a watchdog to call it
every so often (1 second at the moment.)  If it finds something went
wrong, post a stern message to the kernel log and call:
start unipro_reset
to reset the whole greybus hardware subsystem.

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Reviewed-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/Makefile
drivers/staging/greybus/svc.c
drivers/staging/greybus/svc.h
drivers/staging/greybus/svc_watchdog.c [new file with mode: 0644]