watchdog: imx_sc_wdt: continue if the wdog already enabled
authorJacky Bai <ping.bai@nxp.com>
Tue, 10 Oct 2023 07:46:26 +0000 (15:46 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 29 Oct 2023 18:45:07 +0000 (19:45 +0100)
commit06fdbf4ddb21b53c2e2fbf7f00df51c1b4e735c4
tree1e36badbe5787c69c67c1269175abb91b60ad901
parentc7e2f4e672364604193d4592c4c3d276137d04c0
watchdog: imx_sc_wdt: continue if the wdog already enabled

if the wdog is already enabled, and try to enabled it again,
we should ignore the error and continue, rather than return
error.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20231010074626.2787383-1-ping.bai@nxp.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/imx_sc_wdt.c