Skip to content

drivers: i2c: stm32: fix build error after timeout patch #91184

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 10, 2025

Conversation

73jn
Copy link
Contributor

@73jn 73jn commented Jun 6, 2025

Follow-up to PR #88631: fix missing variable declarations introduced in the STM32 I2C LL driver after adding timeouts to blocking loops.

The missing declarations caused a build failure when interrupts were disabled (CONFIG_I2C_STM32_INTERRUPT=n).

Fixes a regression introduced in #88631.

Backport concerned (#90659, #90660, #90661)

@etienne-lms

Follow-up to PR zephyrproject-rtos#88631: fix missing variable declarations introduced in
the STM32 I2C LL driver after adding timeouts to blocking loops.

The missing declarations caused a build failure when interrupts were
disabled (CONFIG_I2C_STM32_INTERRUPT=n).

Fixes a regression introduced in zephyrproject-rtos#88631.

Signed-off-by: Jean Nanchen <[email protected]>
Copy link

sonarqubecloud bot commented Jun 6, 2025

@etienne-lms
Copy link
Collaborator

Backport concerned (#90659, #90659, #90661)

I think you meant "(#90659, #90660, #90661)"

@JarmouniA
Copy link
Collaborator

Why wasn't this caught in CI?

@73jn
Copy link
Contributor Author

73jn commented Jun 6, 2025

Why wasn't this caught in CI?

It seems to me that this is tested all the time with CONFIG_I2C_STM32_INTERRUPT=y
https://github.com/zephyrproject-rtos/zephyr/blob/main/tests/drivers/i2c/i2c_target_api/boards/stm32h573i_dk.conf

@erwango
Copy link
Member

erwango commented Jun 6, 2025

@djiatsaf-st Can you check how to add one test config ensuring we're also building CONFIG_I2C_STM32_INTERRUPT=n in CI ?

@kartben kartben merged commit bc097a6 into zephyrproject-rtos:main Jun 10, 2025
30 checks passed
@73jn
Copy link
Contributor Author

73jn commented Jun 10, 2025

@erwango can this be backported to zephyr 3.7?
Thanks a lot

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.

5 participants