]> asedeno.scripts.mit.edu Git - linux.git/commit
watchdog: imx7ulp: Fix reboot hang
authorFabio Estevam <festevam@gmail.com>
Tue, 29 Oct 2019 17:40:33 +0000 (14:40 -0300)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 18 Nov 2019 18:53:44 +0000 (19:53 +0100)
commit6083ab7b2f3f25022e2e8f4c42f14a8521f47873
tree71845e61289afd6672774758ad1e861edfafb506
parentbc44fa734cef28e7ddb26bbf9e75e7f7449c9db2
watchdog: imx7ulp: Fix reboot hang

The following hang is observed when a 'reboot' command is issued:

# reboot
# Stopping network: OK
Stopping klogd: OK
Stopping syslogd: OK
umount: devtmpfs busy - remounted read-only
[    8.612079] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
The system is going down NOW!
Sent SIGTERM to all processes
Sent SIGKILL to all processes
Requesting system reboot
[   10.694753] reboot: Restarting system
[   11.699008] Reboot failed -- System halted

Fix this problem by adding a .restart ops member.

Fixes: 41b630f41bf7 ("watchdog: Add i.MX7ULP watchdog support")
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191029174037.25381-1-festevam@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/imx7ulp_wdt.c