Skip to content

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
@zephyrbot zephyrbot requested a review from dcpleung November 14, 2024 10:00
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]>
@asmellby asmellby force-pushed the bugfix/uart-gecko-txidle branch from a54e465 to 60ebdbb Compare November 14, 2024 10:11
@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