From 1faca2d1ed7d28f4156690cda43a9814e22b4460 Mon Sep 17 00:00:00 2001 From: Joshua Crofts Date: Tue, 27 Oct 2026 12:20:42 +0000 Subject: PM: runtime: clarify pm_runtime_use_autosuspend() undo mechanism Commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()") introduced a pm_runtime_dont_use_autosuspend() call that is executed automatically on driver exit without making any changes to the kerneldocs. Update the kerneldocs to clarify the current mechanism of pm_runtime_use_autosuspend() cleanup on exit. Fixes: d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()") Signed-off-by: Joshua Crofts [ rjw: Added Fixes: tag ] Link: https://patch.msgid.link/20261027122042.1444-1-crofts@kernel.org Signed-off-by: Rafael J. Wysocki --- include/linux/pm_runtime.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/linux') diff --git a/include/linux/pm_runtime.h b/include/linux/pm_runtime.h index 322e3b17f987..ae68a9dc7fc5 100644 --- a/include/linux/pm_runtime.h +++ b/include/linux/pm_runtime.h @@ -855,9 +855,9 @@ static inline void pm_runtime_disable(struct device *dev) * requested (or "autosuspend" will be handled as direct runtime-suspend for * it). * - * NOTE: It's important to undo this with pm_runtime_dont_use_autosuspend() - * at driver exit time unless your driver initially enabled pm_runtime - * with devm_pm_runtime_enable() (which handles it for you). + * NOTE: This is undone automatically with pm_runtime_dont_use_autosuspend() on + * driver exit regardless of whether a driver uses managed devm_* functions or + * not. */ static inline void pm_runtime_use_autosuspend(struct device *dev) { -- cgit v1.2.3