summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/sbc60xxwdt.c
diff options
context:
space:
mode:
authorRobin Gong <yibin.gong@nxp.com>2021-05-14 19:21:15 +0200
committerWim Van Sebroeck <wim@linux-watchdog.org>2021-06-21 08:48:59 +0200
commite0b101ab01c719a5a81b21ff16bbd33a868f9189 (patch)
treef52aea1dedf2601d5eaed85b74a64c6823450b2b /drivers/watchdog/sbc60xxwdt.c
parentwatchdog: mtx-1: drop au1000.h header file (diff)
downloadlinux-e0b101ab01c719a5a81b21ff16bbd33a868f9189.tar.xz
linux-e0b101ab01c719a5a81b21ff16bbd33a868f9189.zip
watchdog: imx2_wdt: avoid to ping before resume back
Since watchdog_ping_work is not freezable so that it maybe scheduled before imx2_wdt_resume where watchdog clock enabled, hence, kernel will hang in imx2_wdt_ping without clock, and then watchdog reset happen. Add clk_is_on to prevent the above case by ignoring ping until watchdog driver resume back indeed. Signed-off-by: Robin Gong <yibin.gong@nxp.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/1621012875-22667-1-git-send-email-yibin.gong@nxp.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog/sbc60xxwdt.c')
0 files changed, 0 insertions, 0 deletions