Bug 217374 - bcm2835-wdt: attempting to set the timer to 30 seconds returns EINVAL
Summary: bcm2835-wdt: attempting to set the timer to 30 seconds returns EINVAL
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Watchdog (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: drivers_watchdog@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-27 09:04 UTC by K900
Modified: 2023-04-27 09:05 UTC (History)
1 user (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

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

Note You need to log in before you can comment on or make changes to this bug.