Linux driver-core infrastructure
 help / color / mirror / Atom feed
* [PATCH v1 0/4] PM: runtime: Close some gaps related to autosuspend
@ 2026-11-19 20:13 Rafael J. Wysocki
  2026-11-19 20:16 ` [PATCH v1 1/4] PM: runtime: Update last_busy in all rpm_idle() paths Rafael J. Wysocki
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Rafael J. Wysocki @ 2026-11-19 20:13 UTC (permalink / raw)
  To: Linux PM
  Cc: Brian Norris, Alan Stern, Sakari Ailus, Ulf Hansson,
	Linux Driver Core Development

Hi All,

This is a follow-up series for

https://web.git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?h=linux-next&id=26236a3e8803f7e1ace104020d7f006edb220116

which is in linux-next.

First of all, I was mistaken when I wrote this in the changelog of the above:

 Updating the last_busy timestamp when rpm_idle() returns an error
 without calling rpm_suspend() is not useful because the device is then
 going to remain active for an unknown amount of time and its autosuspend
 delay needs to take effect later.

There actually is a reason for doing this which is that an autosuspend timer
(left behind by an intermediate runtime resume) may be running when rpm_idle()
runs and that autosuspend timer needs to be prevented from using a soon-to-be-stale
last_busy timestamp value.  There is one more issue related to that in
__pm_runtime_idle() and both are addressed by patch [1/4].

Patch [2/4] simply removes spaces preceding labels as a matter of cleanup.

Patch [3/4] removes one more difference in the handling of devices that are
resumed by rpm_resume() and those that are already active when they are passed
to that function.

Patch [4/4] drops the direct pm_runtime_mark_last_busy() calls from rpm_resume()
that are not needed any more after the previous changes.

For details, please see the patch changelogs.

Thanks!




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-11-20 21:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19 20:13 [PATCH v1 0/4] PM: runtime: Close some gaps related to autosuspend Rafael J. Wysocki
2026-11-19 20:16 ` [PATCH v1 1/4] PM: runtime: Update last_busy in all rpm_idle() paths Rafael J. Wysocki
2026-11-20 20:59   ` Brian Norris
2026-11-20 21:29     ` Rafael J. Wysocki (Intel)
2026-11-19 20:17 ` [PATCH v1 2/4] PM: runtime: Drop space characters preceding labels Rafael J. Wysocki
2026-11-20  2:47   ` Alan Stern
2026-11-20 12:11     ` Rafael J. Wysocki (Intel)
2026-11-20 12:30       ` Rafael J. Wysocki (Intel)
2026-11-20 16:11         ` Alan Stern
2026-11-19 20:17 ` [PATCH v1 3/4] PM: runtime: Let devices suspend after an attempted resume Rafael J. Wysocki
2026-11-20 21:04   ` Brian Norris
2026-11-19 20:18 ` [PATCH v1 4/4] PM: runtime: Drop direct last_busy updates from rpm_resume() Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox