Skip to content

Commit 4217df5

Browse files
etienne-lmsdkalowsk
authored andcommitted
drivers: i2c: stm32: exclude stm32f7 family for PM in RTIO driver
Exclude STM32F7 SoC series from PM support since that SoC doees not yet manage power management in Zephyr and HAL API functions LL_I2C_EnableWakeUpFromStop() and LL_I2C_DisableWakeUpFromStop() are not implemented in the H7 HAL/LL drivers. This change ports into the STM32 RTIO driver the change made in the non-RTIO driver through commit 1804eb7 ("drivers: i2c: stm32: exclude stm32f7 family for PM"). Back ported from commit 5ff3dbe ("drivers: i2c: stm32: exclude stm32f7 family for PM in RTIO driver"). Signed-off-by: Etienne Carriere <[email protected]>
1 parent d1a9ef6 commit 4217df5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/i2c/i2c_ll_stm32_v2_rtio.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,13 @@ int i2c_stm32_target_register(const struct device *dev,
213213
/* Mark device as active */
214214
(void)pm_device_runtime_get(dev);
215215

216+
#if !defined(CONFIG_SOC_SERIES_STM32F7X)
216217
if (pm_device_wakeup_is_capable(dev)) {
217218
/* Enable wake-up from stop */
218219
LOG_DBG("i2c: enabling wakeup from stop");
219220
LL_I2C_EnableWakeUpFromStop(cfg->i2c);
220221
}
222+
#endif /* !CONFIG_SOC_SERIES_STM32F7X */
221223
#endif /* defined(CONFIG_PM_DEVICE_RUNTIME) */
222224

223225
LL_I2C_Enable(i2c);
@@ -300,11 +302,13 @@ int i2c_stm32_target_unregister(const struct device *dev,
300302
LL_I2C_Disable(i2c);
301303

302304
#if defined(CONFIG_PM_DEVICE_RUNTIME)
305+
#if !defined(CONFIG_SOC_SERIES_STM32F7X)
303306
if (pm_device_wakeup_is_capable(dev)) {
304307
/* Disable wake-up from STOP */
305308
LOG_DBG("i2c: disabling wakeup from stop");
306309
LL_I2C_DisableWakeUpFromStop(i2c);
307310
}
311+
#endif /* !CONFIG_SOC_SERIES_STM32F7X */
308312
#endif /* defined(CONFIG_PM_DEVICE_RUNTIME) */
309313

310314
/* Release the device */

0 commit comments

Comments
 (0)