We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7e2f4e commit 06fdbf4Copy full SHA for 06fdbf4
drivers/watchdog/imx_sc_wdt.c
@@ -34,6 +34,7 @@
34
35
#define SC_IRQ_WDOG 1
36
#define SC_IRQ_GROUP_WDOG 1
37
+#define SC_TIMER_ERR_BUSY 10
38
39
static bool nowayout = WATCHDOG_NOWAYOUT;
40
module_param(nowayout, bool, 0000);
@@ -61,7 +62,9 @@ static int imx_sc_wdt_start(struct watchdog_device *wdog)
61
62
63
arm_smccc_smc(IMX_SIP_TIMER, IMX_SIP_TIMER_START_WDOG,
64
0, 0, 0, 0, 0, 0, &res);
- if (res.a0)
65
+
66
+ /* Ignore if already enabled(SC_TIMER_ERR_BUSY) */
67
+ if (res.a0 && res.a0 != SC_TIMER_ERR_BUSY)
68
return -EACCES;
69
70
arm_smccc_smc(IMX_SIP_TIMER, IMX_SIP_TIMER_SET_WDOG_ACT,
0 commit comments