watchdog: dw_wdt: one bug fix and restart handler support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 4 repliesIn review
- v12 patches 7 repliesSuperseded
Changes in v2 from the cover letter
- add some wait to let the reset catch, suggested by Guenter Roeck
- setting TOP_INIT as well when setting TOP in function dw_wdt_set_top to fix the reboot soon issue.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | watchdog: dw_wdt: initialise TOP_INIT in dw_wdt_set_top()drivers/ | +3 | 1 reply | |
| 2/2 | watchdog: dw_wdt: add restart handler supportdrivers/ | +32 | 3 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Guenter Roeck |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] watchdog: dw_wdt: one bug fix and restart handler support
These patches are intend to improve dw_wdt in the following two aspects:
Firstly, the TOP_INIT, ie bit 4-7 of the WDOG_TIMEOUT_RANGE_REG_OFFSET register may be zero at reset on some HW, so the timeout period may be very short, thus we will see immediate system reset after openning the watchdog. Fix this problem by also initialising the TOP_INIT when setting TOP.
Secondly, the WDT can also be used to reboot the system with the help of recently introduced restart handler.
Tested on Marvell BG2Q DMP board.
Changes since v1:
- add some wait to let the reset catch, suggested by Guenter Roeck
- setting TOP_INIT as well when setting TOP in function dw_wdt_set_top to fix the reboot soon issue.
Jisheng Zhang (2):
watchdog: dw_wdt: initialise TOP_INIT in dw_wdt_set_top()
watchdog: dw_wdt: add restart handler support
drivers/watchdog/dw_wdt.c | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-)
Signature · 1 line
2.1.0