watchdog: sprd: remove watchdog disable from resume fail path
authorLingling Xu <ling_ling.xu@unisoc.com>
Thu, 29 Oct 2020 02:39:31 +0000 (10:39 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 13 Dec 2020 15:17:38 +0000 (16:17 +0100)
commitf61a59acb462840bebcc192f754fe71b6a16ff99
tree3a2a39e6ec3466bcaac92ed67f750fb2ae371a24
parent8ae2511112d2e18bc7d324b77f965d34083a25a2
watchdog: sprd: remove watchdog disable from resume fail path

sprd_wdt_start() would return fail if the loading operation is not completed
in a certain time, disabling watchdog for that case would probably cause
the kernel crash when kick watchdog later, that's too bad, so remove the
watchdog disable operation for the fail case to make sure other parts in
the kernel can run normally.

[ chunyan: Massaged changelog ]

Fixes: 477603467009 ("watchdog: Add Spreadtrum watchdog driver")
Signed-off-by: Lingling Xu <ling_ling.xu@unisoc.com>
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20201029023933.24548-2-zhang.lyra@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/sprd_wdt.c