[PATCH v10 1/7] i2c: xiic: switch to devres managed APIs
Andy Shevchenko
andriy.shevchenko at intel.com
Wed Feb 4 02:11:47 PST 2026
On Wed, Feb 04, 2026 at 10:00:34AM +0000, Jonathan Cameron wrote:
> On Wed, 04 Feb 2026 07:01:58 +0000
> Abdurrahman Hussain via B4 Relay <devnull+abdurrahman.nexthop.ai at kernel.org> wrote:
...
> > - return 0;
> > -
> > -err_pm_disable:
> > - pm_runtime_disable(&pdev->dev);
> > - pm_runtime_set_suspended(&pdev->dev);
> > -
> > return ret;
> Trivial but if you are respinning...
> If you get here we know ret must be 0, so make that explicit to the reader as it
> was before with
> return 0;
> Otherwise they need to look up a few lines to realize that is true.
Right and this is already the line above, just wrong one was removed.
...
> > - pm_runtime_disable(&pdev->dev);
> > - pm_runtime_set_suspended(&pdev->dev);
> > pm_runtime_dont_use_autosuspend(&pdev->dev);
>
> Take a look at docs for the devm_runtime_enable() that is called
> by the cleanup for devm_pm_runtime_set_active_enabled()
>
> Short story, it will call pm_runtime_dont_use_autosuspend() for you
Good catch! It's not obvious from the devm_pm_*() naming... :-(
...
This definitely means v11 should be send at some point, but,
Abdurrahman, do not hurry with it, this series missed the cycle
anyway, we have a few *weeks* to polish this.
That said, send it after v6.20-rc1 (or v7.0-rc1) is out.
--
With Best Regards,
Andy Shevchenko
More information about the linux-arm-kernel
mailing list