Skip to content

[Backport v4.2] i2c: stm32: non-RTIO driver fixes on PM and on STM32F7 from Zephyr v4.3 #95146

@etienne-lms

Description

@etienne-lms

Describe the bug

In Zephyr v4.2, STM32 I2C RTIO drivers have 2 issues:

  • pm_device_runtime_get()/_put() were not called when the I2C bus is not wakeup capable, leading to non-function I2C controller when PM runtime is enabled.
  • STM32F7 SoCs do not yet support power management and some expected HAL functions (LL_I2C_EnableWakeUpFromStop() and LL_I2C_DisableWakeUpFromStop')) do not even exist, leading to build errors.

These 2 issues were addressed in v4.2 for the non-RTIO STM32 I2C drivers but not for the RTIO drivers.
These 2 issues in the STM32 I2C RTIO driver are fixed in v4.3 (see #94845). These 2 fixes (181e544 and 5ff3dbe) should be backported in v4.2 branch.

Regression

  • This is a regression.

Steps to reproduce

No response

Relevant log output

Impact

Annoyance – Minor irritation; no significant impact on usability or functionality.

Environment

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

BackportBackport PR and backport failure issuesbugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions