Re: [PATCH] pwm: img: stop using autosuspend on remove

From: Joshua Crofts

Date: Mon Nov 30 2026 - 08:41:45 EST


On 30-Nov-26 14:31, Uwe Kleine-König wrote:
>> > pm_runtime_disable(&pdev->dev);
>> > + pm_runtime_dont_use_autosuspend(&pdev->dev);
>>
>> No need to add this as I added a change [1] that causes dont_use_autosuspend() to
>> be called on driver exit.
>>
>> [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d1706f9da9f40dffe8621cc0ee03b847f41f1d6d
>
> That sounds like the right thing to do. So I guess this patch can be
> replaced by one that drops pm_runtime_dont_use_autosuspend() from
> img_pwm_probe() then.
Correct. I've been sending series gradually to different subsystems but the
process has been slow; there are a few non-trivial cases of dont_use_autosuspend()
use that make it harder to remove.

I can send a quick patch to PWM removing it though, this is a trivial case.

--
Kind regards,
Joshua Crofts