drivers: i2c: stm32: Fix for i2c PM
Remove unwanted "pm_device_runtime_get" lock which makes i2c power management working incorrectly. Fixes: #62790 Signed-off-by: Petr Hlineny <development@hlineny.cz>
This commit is contained in:
parent
05e974cab0
commit
b2fb3d49bf
1 changed files with 0 additions and 5 deletions
|
@ -146,11 +146,6 @@ static int i2c_stm32_transfer(const struct device *dev, struct i2c_msg *msg,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = pm_device_runtime_get(dev);
|
|
||||||
if (ret < 0) {
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Send out messages */
|
/* Send out messages */
|
||||||
k_sem_take(&data->bus_mutex, K_FOREVER);
|
k_sem_take(&data->bus_mutex, K_FOREVER);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue