summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/tangox_wdt.c
Commit message (Collapse)AuthorAgeFilesLines
* watchdog: tangox: Use watchdog core to install restart handlerGuenter Roeck2017-02-241-21/+13
| | | | | | | Use the infrastructure provided by the watchdog core to install the restart handler. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
* watchdog: tangox: Set max_hw_heartbeat_ms instead of max_timeoutGuenter Roeck2016-07-181-1/+1
| | | | | | | | | | | Setting max_hw_heartbeat_ms lets the watchdog core provide a virtual timeout if the timeout requested by user space is larger than the maximum hardware timeout. Also, it helps the watchdog core to provide heartbeats if the hardware watchdog is running while closed. Fixes: a3e376d26ace ("watchdog: tangox: Mark running watchdog correctly") Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
* watchdog: tangox: Mark running watchdog correctlyGuenter Roeck2016-07-171-1/+1
| | | | | | | | | A running watchdog is marked with WDOG_HW_RUNNING, not with WDOG_ACTIVE. WDOG_ACTIVE indicates that the watchdog device has been opened from user space. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
* watchdog: tangox_wdt: test clock rate to avoid division by 0Wolfram Sang2016-03-161-4/+10
| | | | | | | | | | The clk API may return 0 on clk_get_rate, so we should check the result before using it as a divisor. For this, refactor the code to use a central error path. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
* watchdog: tangox: Print info message using pointer to platform deviceGuenter Roeck2015-12-281-1/+1
| | | | | | | | | The device pointer in struct watchdog_device should not be used by drivers and may be removed in the near future. Use the platform device pointer for info messages instead. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
* watchdog: add support for Sigma Designs SMP86xx/SMP87xxMans Rullgard2015-12-281-0/+225
This adds support for the Sigma Designs SMP86xx/SMP87xx family built-in watchdog. Signed-off-by: Mans Rullgard <mans@mansr.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
OpenPOWER on IntegriCloud