-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers: watchdog: gecko: Fix timeout period inconsistency with EM1 #86115
base: main
Are you sure you want to change the base?
Conversation
58b9ac7
to
851f814
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upon further inspection: This struct member is not available on all devices supported by the driver. I believe this needs to be guarded by #if defined(_WDOG_CFG_EM1RUN_MASK)
. The lack of a test failure suggests the driver needs to be built for more platforms in CI.
default watchdog initialization disable counting in EM1, EM2 and EM3 modes. If user use the WDT_OPT_PAUSE_IN_SLEEP flag via the watchdog api, all 3 EM modes must take this flag into account to avoid wdt count being frozen if we don't want to. Signed-off-by: Adrien MARTIN <[email protected]>
1da4cbf
851f814
to
1da4cbf
Compare
Default watchdog initialization disable counting in EM1, EM2 and EM3 modes. If user use the WDT_OPT_PAUSE_IN_SLEEP flag via the watchdog api, all 3 EM modes must take this flag into account to avoid wdt count being frozen if we don't want to.
Fixes #86114