drivers: stm32: Don't use pm_device_busy for configure
During i2c_configure API execution, there is no way core can go in low power mode. Hence, call to pm_device_busy_set/get API is useless. Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
This commit is contained in:
parent
b9b3e91dba
commit
85fb82e1d6
|
@ -74,8 +74,6 @@ int i2c_stm32_runtime_configure(const struct device *dev, uint32_t config)
|
|||
|
||||
#ifdef CONFIG_PM_DEVICE_RUNTIME
|
||||
(void)pm_device_runtime_get(dev);
|
||||
#else
|
||||
pm_device_busy_set(dev);
|
||||
#endif
|
||||
|
||||
LL_I2C_Disable(i2c);
|
||||
|
@ -84,8 +82,6 @@ int i2c_stm32_runtime_configure(const struct device *dev, uint32_t config)
|
|||
|
||||
#ifdef CONFIG_PM_DEVICE_RUNTIME
|
||||
(void)pm_device_runtime_put(dev);
|
||||
#else
|
||||
pm_device_busy_clear(dev);
|
||||
#endif
|
||||
|
||||
k_sem_give(&data->bus_mutex);
|
||||
|
|
Loading…
Reference in a new issue