Skip to content

Conversation

@github-actions
Copy link

Backport 2066b8c from #88631.

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 <jean.nanchen@hevs.ch>
(cherry picked from commit 2066b8c)
@github-actions github-actions bot added the Backport Backport PR and backport failure issues label May 27, 2025
@github-actions github-actions bot requested a review from ydamigos as a code owner May 27, 2025 11:02
@github-project-automation github-project-automation bot moved this to To do in Backports May 27, 2025
@sonarqubecloud
Copy link


#ifndef CONFIG_I2C_STM32_INTERRUPT
struct i2c_stm32_data *data = dev->data;

Copy link
Contributor

Choose a reason for hiding this comment

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

missing

Suggested change
const struct i2c_stm32_config *cfg = dev->config;
I2C_TypeDef *i2c = cfg->i2c;

@kartben
Copy link
Contributor

kartben commented Jul 22, 2025

Zephyr 4.0 branch is EOL

@kartben kartben closed this Jul 22, 2025
@github-project-automation github-project-automation bot moved this from To do to Done in Backports Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport Backport PR and backport failure issues

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants