[PATCH 5/6] i2c: stm32f7: remove redundant pm_runtime_dont_use_autosuspend() calls

Alain Volmat alain.volmat at foss.st.com
Tue Nov 17 01:03:17 PST 2026


Hi,

On Mon, Nov 09, 2026 at 09:50:06PM +0100, Joshua Crofts wrote:
> Since commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"),
> driver core is now responsible for undoing any
> pm_runtime_use_autosuspend() calls on driver exit.
> 
> Remove the redundant function calls.
> 
> Signed-off-by: Joshua Crofts <crofts at kernel.org>
> ---
>  drivers/i2c/busses/i2c-stm32f7.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/i2c/busses/i2c-stm32f7.c b/drivers/i2c/busses/i2c-stm32f7.c
> index 2e1cc6a92b81..7904d888550c 100644
> --- a/drivers/i2c/busses/i2c-stm32f7.c
> +++ b/drivers/i2c/busses/i2c-stm32f7.c
> @@ -2325,7 +2325,6 @@ static int stm32f7_i2c_probe(struct platform_device *pdev)
>  	pm_runtime_put_noidle(i2c_dev->dev);
>  	pm_runtime_disable(i2c_dev->dev);
>  	pm_runtime_set_suspended(i2c_dev->dev);
> -	pm_runtime_dont_use_autosuspend(i2c_dev->dev);
>  
>  	if (i2c_dev->wakeup_src)
>  		dev_pm_clear_wake_irq(i2c_dev->dev);
> @@ -2367,7 +2366,6 @@ static void stm32f7_i2c_remove(struct platform_device *pdev)
>  	pm_runtime_put_noidle(i2c_dev->dev);
>  	pm_runtime_disable(i2c_dev->dev);
>  	pm_runtime_set_suspended(i2c_dev->dev);
> -	pm_runtime_dont_use_autosuspend(i2c_dev->dev);
>  
>  	if (i2c_dev->dma) {
>  		stm32_i2c_dma_free(i2c_dev->dma);
> 

Reviewed-by: Alain Volmat <alain.volmat at foss.st.com>

Regards,
Alain
> -- 
> 2.56.0
> 



More information about the linux-arm-kernel mailing list