aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/dwwdt
Commit message (Collapse)AuthorAgeFilesLines
* Replace calls to bus_generic_attach with bus_attach_childrenJohn Baldwin2024-12-061-1/+2
| | | | | Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47675
* Check for errors when detaching children first, not lastJohn Baldwin2024-11-051-1/+6
| | | | | | | | | | | | These detach routines in these drivers all ended with 'return (bus_generic_detach())' meaning that if any child device failed to detach, the parent driver was left in a mostly destroyed state, but still marked attached. Instead, bus drivers should detach child drivers first and return errors before destroying driver state in the parent. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47387
* clk: Move clock code in dev/clkEmmanuel Vadot2024-01-101-1/+1
| | | | | | | | | | | We've removed kernel option EXT_RESOURCES almost two years ago. While it was ok to have some code under a common 'extres' subdirectory at first, we now have a lot of consumer of it and we made it mandatory so no need to have it under a cryptic name. Reviewed by: mhorne Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D43191
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* dwwdt: Remove unused devclass argument to DRIVER_MODULE.John Baldwin2022-05-091-3/+1
|
* dwwdt: make it actually usefulAndriy Gapon2022-01-111-11/+20
| | | | | | | | | | | | | | | | | | | | | | | Flip dwwdt_prevent_restart to false. What's the use of a watchdog if it does not restart a hung system? Add a knob for panic-ing on the first timeout, resetting on the second one. This can be useful if interrupts can still work, otherwise a reset recovers a system without any aid for debugging the hang. The change also doubles the timeout that's programmed into the hardware. The previous version of the code always had the interrupt on the first timeout enabled, but it took no action on it. Only the second timeout could be configured to reset the system. So, the hardware timeout was set to a half of the user requested timeout. But now,we can take a corrective action on the first timeout, so we use the user requested timeout. While here, define boolean sysctl-s as such. Reviewed by: manu MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D33534
* dwwdt: Add PNP info for the driverEmmanuel Vadot2021-01-131-1/+7
|
* Add driver for Synopsys Designware Watchdog timer.Emmanuel Vadot2021-01-131-0/+360
This driver supports some arm and arm64 boards equipped with "snps,dw-wdt"-compatible watchdog device. Tested on RK3399-based board (RockPro64). Once started watchdog device cannot be stopped. Interrupt handler has mode to kick watchdog even when software does not do it properly. This can be controlled via sysctl: dev.dwwdt.prevent_restart. Also - driver handles system shutdown and prevents from restart when system is asked to reboot. Submitted by: kjopek@gmail.com Differential Revision: https://reviews.freebsd.org/D26761