Skip to content

[Backport v3.7-branch] drivers: i2c: stm32: add timeout to avoid infinite loop #90659

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

Merged
merged 1 commit into from
Jun 18, 2025

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented May 27, 2025

Backport 2066b8c from #88631.

Fixes #88506

@github-actions github-actions bot requested a review from ydamigos as a code owner May 27, 2025 11:02
@github-actions github-actions bot added the Backport Backport PR and backport failure issues label May 27, 2025
@github-project-automation github-project-automation bot moved this to To do in Backports May 27, 2025
Fix issue where STM32 I2C LL driver could block forever when SDA and SCL
are shorted and interrupts are disabled (CONFIG_I2C_STM32_INTERRUPT=n).

Added timeouts to all blocking wait loops in the STM32 LL I2C driver to
avoid indefinite blocking.

Fixes #88506

Signed-off-by: Jean Nanchen <[email protected]>
(cherry picked from commit 2066b8c)
Copy link

@nashif nashif merged commit e244450 into v3.7-branch Jun 18, 2025
26 of 27 checks passed
@nashif nashif deleted the backport-88631-to-v3.7-branch branch June 18, 2025 13:14
@github-project-automation github-project-automation bot moved this from To do to Done in Backports Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: I2C Backport Backport PR and backport failure issues platform: STM32 ST Micro STM32
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants