Bug 217374

Summary: bcm2835-wdt: attempting to set the timer to 30 seconds returns EINVAL
Product: Drivers Reporter: K900 (me)
Component: WatchdogAssignee: drivers_watchdog (drivers_watchdog)
Status: NEW ---    
Severity: normal CC: me
Priority: P3    
Hardware: All   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:

Description K900 2023-04-27 09:04:07 UTC
It looks like the hardware can only handle timeouts of 15 seconds or less, but according to https://www.kernel.org/doc/html/latest/watchdog/watchdog-api.html#setting-and-getting-the-timeout, the correct behavior when provided an incompatible value is to set the closest compatible one and return that.

Originally filed as a a systemd bug: https://github.com/systemd/systemd/issues/27427