Thread (13 messages) 13 messages, 4 authors, 2026-02-04

Re: [PATCH v10 1/7] i2c: xiic: switch to devres managed APIs

From: Andy Shevchenko <hidden>
Date: 2026-02-04 10:11:52
Also in: linux-devicetree, linux-i2c, lkml

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 [off-list ref] wrote:
...
quoted
-	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.

...
quoted
-	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


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help