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: serial: gecko: Fix build error on Series 0 #81391

Merged

Conversation

asmellby
Copy link
Contributor

Series 0 does not have the TXIDLE status flag. The closest equivalent is TXC, but it isn't set until the first transmission completes, and is therefore not safe to use in PM suspend without also separately keeping track of whether the driver has ever initiated a transmission. For now, disable the TXIDLE check on devices that don't support it as a minimal fix for the observed build error. This is effectively equivalent to reverting the addition of PM support for these devices only. Since these devices don't have a low-power system timer implementation anyway, the lack of PM handling does not hurt anything.

Fixes #81390 .

@asmellby asmellby added the bug The issue is a bug, or the PR is fixing a bug label Nov 14, 2024
@zephyrbot zephyrbot added platform: Silabs Silicon Labs area: UART Universal Asynchronous Receiver-Transmitter labels Nov 14, 2024
Series 0 does not have the TXIDLE status flag. The closest equivalent is
TXC, but it isn't set until the first transmission completes, and is
therefore not safe to use in PM suspend without also separately keeping
track of whether the driver has ever initiated a transmission. For now,
disable the TXIDLE check on devices that don't support it as a minimal
fix for the observed build error. This is effectively equivalent to
reverting the addition of PM support for these devices only. Since these
devices don't have a low-power system timer implementation anyway, the
lack of PM handling does not hurt anything.

Signed-off-by: Aksel Skauge Mellbye <[email protected]>
@jhedberg jhedberg added this to the v4.0.0 milestone Nov 14, 2024
@mmahadevan108 mmahadevan108 merged commit 7f8b531 into zephyrproject-rtos:main Nov 14, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: UART Universal Asynchronous Receiver-Transmitter bug The issue is a bug, or the PR is fixing a bug platform: Silabs Silicon Labs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build error in UART driver for slstk3400a with device power management
5 participants