File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -423,6 +423,16 @@ static unsigned int iTCO_wdt_get_timeleft(struct watchdog_device *wd_dev)
423
423
return time_left ;
424
424
}
425
425
426
+ static void iTCO_wdt_set_running (struct iTCO_wdt_private * p )
427
+ {
428
+ u16 val ;
429
+
430
+ /* Bit 11: TCO Timer Halt -> 0 = The TCO timer is * enabled */
431
+ val = inw (TCO1_CNT (p ));
432
+ if (!(val & BIT (11 )))
433
+ set_bit (WDOG_HW_RUNNING , & p -> wddev .status );
434
+ }
435
+
426
436
/*
427
437
* Kernel Interfaces
428
438
*/
@@ -562,8 +572,7 @@ static int iTCO_wdt_probe(struct platform_device *pdev)
562
572
watchdog_set_drvdata (& p -> wddev , p );
563
573
platform_set_drvdata (pdev , p );
564
574
565
- /* Make sure the watchdog is not running */
566
- iTCO_wdt_stop (& p -> wddev );
575
+ iTCO_wdt_set_running (p );
567
576
568
577
/* Check that the heartbeat value is within it's range;
569
578
if not reset to the default */
You can’t perform that action at this time.
0 commit comments