watchdog: pnx4008: restart: support "cmd" from userspace
commit247dcad5c0361fdae06903f3b10855ba0381802d
authorSylvain Lemieux <slemieux@tycoint.com>
Fri, 4 Mar 2016 18:44:08 +0000 (4 13:44 -0500)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 16 Mar 2016 20:09:42 +0000 (16 21:09 +0100)
treec31eeebc908d6777bc709522d996a54a59bdbad2
parent25b286c02defa26b136818b17909789102225aa8
watchdog: pnx4008: restart: support "cmd" from userspace

Added support to verify if a "cmd" is passed from the userspace program rebooting the system;
- if a valid "cmd" is available, handle it;
- If the received "cmd" is not supported, use the default reboot mode.

Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/pnx4008_wdt.c