Re: [PATCH v3 2/5] PM: sleep: Suspend async parents after suspending children
From: Rafael J. Wysocki
Date: Tue Jun 03 2025 - 09:59:45 EST
On Tue, Jun 3, 2025 at 3:36 PM Chris Bainbridge
<chris.bainbridge@xxxxxxxxx> wrote:
>
> On Tue, Jun 03, 2025 at 03:04:33PM +0200, Rafael J. Wysocki wrote:
> > On Tue, Jun 3, 2025 at 2:27 PM Chris Bainbridge
> > <chris.bainbridge@xxxxxxxxx> wrote:
> > >
> > > On Tue, 3 Jun 2025 at 13:24, Rafael J. Wysocki <rafael@xxxxxxxxxx> wrote:
> > > > >
> > > > > This patch does fix the list corruption, but the "Unbalanced
> > > > > pm_runtime_enable" still occurs:
> > > >
> > > > Have you applied it together with the previous patch?
> > >
> > > Yes
> >
> > So it looks like some devices have power.is_suspended set from the
> > previous cycle which causes device_resume() to attempt to resume them
> > even though they have not been suspended in the current cycle yet.
> >
> > Please try the attached patch in addition to the previous 2 patches.
> >
> > Thanks!
>
> That fixed it. Passed 30 attempted suspends without error.
>
> Reported-and-tested-by: Chris Bainbridge <chris.bainbridge@xxxxxxxxx>
Thanks for verifying!
I will add changelogs to the patches and send them later today.