[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YYm6D0YMGEXGFsZL@rocinante>
Date: Tue, 9 Nov 2021 01:00:15 +0100
From: Krzysztof Wilczyński <kw@...ux.com>
To: Robert Święcki <robert@...ecki.net>
Cc: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>,
Bjorn Helgaas <helgaas@...nel.org>, linux-i2c@...r.kernel.org,
Bjorn Helgaas <bhelgaas@...gle.com>, linux-pci@...r.kernel.org,
"Rafael J. Wysocki" <rafael@...nel.org>, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] pci: Don't call resume callback for nearly bound devices
Hello!
[...]
> > I didn't test this patch, @Robert, maybe you can do this?
> >
> > Best regards
> > Uwe
> >
> > drivers/pci/pci-driver.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
> > index 1d98c974381c..202533654012 100644
> > --- a/drivers/pci/pci-driver.c
> > +++ b/drivers/pci/pci-driver.c
> > @@ -1299,7 +1299,7 @@ static int pci_pm_runtime_resume(struct device *dev)
> > */
> > pci_restore_standard_config(pci_dev);
> >
> > - if (!to_pci_driver(dev->driver))
> > + if (!device_is_bound(dev))
> > return 0;
> >
> > pci_fixup_device(pci_fixup_resume_early, pci_dev);
>
> Yes, that fixes it. Thanks for the patch.
Thank you Uwe for the patch and Robert for testing!
Krzysztof
Powered by blists - more mailing lists