[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJZ5v0hBGhVuwsfQW=-MDp3nLL_5epaYYHqmPY-DY9_g6wciSQ@mail.gmail.com>
Date: Thu, 5 Jun 2025 20:55:05 +0200
From: "Rafael J. Wysocki" <rafael@...nel.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Linux PM <linux-pm@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: [GIT PULL] Power management fixes for v6.16-rc1
Hi Linus,
Please pull from the tag
git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \
pm-6.16-rc1-3
with top-most commit 8887abccf8aa16795f23ef3a3b25650cb8aa804c
PM: sleep: Add locking to dpm_async_resume_children()
on top of commit 976aa630da5b5508c278487db31b873ddf6bae8f
Merge tag 'pm-6.16-rc1-2' of
git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
to receive power management fixes for 6.16-rc1.
These fix three issues introduced into device suspend/resume error paths
in the PM core by some of the recent updates.
First off, list_splice() is replaced with list_splice_init() in three
places in device suspend error paths to avoid attempting to use an
uninitialized list head going forward.
Second, device_resume() is rearranged to avoid leaking the
power.is_suspended device PM flag to the next system suspend/resume
cycle where it can confuse rolling back after an error or early wakeup.
Finally, synchronization is added to dpm_async_resume_children() to
avoid resetting the async state mistakenly for devices whose resume
callbacks have already been queued up for asynchronous execution in the
given device resume phase, which fortunately can happen only if the
preceding system suspend transition has been aborted.
Thanks!
---------------
Rafael J. Wysocki (3):
PM: sleep: Fix list splicing in device suspend error paths
PM: sleep: Fix power.is_suspended cleanup for direct-complete devices
PM: sleep: Add locking to dpm_async_resume_children()
---------------
drivers/base/power/main.c | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
Powered by blists - more mailing lists