Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adri1mart1
Copy link

@adri1mart1 adri1mart1 commented Feb 20, 2025

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

@zephyrbot zephyrbot added area: Bluetooth Host Bluetooth Host (excluding BR/EDR) area: Samples Samples area: Watchdog Watchdog area: Bluetooth HCI Bluetooth HCI Driver area: Bluetooth platform: Silabs Silicon Labs labels Feb 20, 2025
@jhedberg jhedberg changed the title drivers: wdt_gecko: watchdog opt pause in sleep also in EM1 mode drivers: watchdog: gecko: Fix timeout period inconsistency with EM1 Feb 20, 2025
@jhedberg jhedberg removed area: Bluetooth area: Samples Samples area: Bluetooth Host Bluetooth Host (excluding BR/EDR) area: Bluetooth HCI Bluetooth HCI Driver labels Feb 20, 2025
@jhedberg jhedberg removed the request for review from Thalley February 20, 2025 22:04
Copy link
Contributor

@asmellby asmellby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@jhedberg jhedberg added this to the v4.1.0 milestone Feb 21, 2025
jhedberg
jhedberg previously approved these changes Feb 21, 2025
Copy link
Contributor

@asmellby asmellby left a 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

drivers: wdt_gecko: watchdog timeout period inconsistencies
6 participants