Thread (21 messages) 21 messages, 5 authors, 2020-07-28

Re: [Linux-kernel-mentees] [PATCH v1] spi: spi-topcliff-pch: use generic power management

From: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Date: 2020-07-27 13:10:26
Also in: linux-spi, lkml

On Mon, Jul 27, 2020 at 02:12:16PM +0300, Andy Shevchenko wrote:
On Mon, Jul 27, 2020 at 10:08 AM Vaibhav Gupta [off-list ref] wrote:
quoted
On Sat, Jul 25, 2020 at 01:44:44PM +0300, Andy Shevchenko wrote:
quoted
On Sat, Jul 25, 2020 at 1:42 PM Andy Shevchenko
[off-list ref] wrote:
...
quoted
quoted
The only problem here, is that the 2nd is already in the Mark's tree
and he doesn't do rebases.
So, it will be the other way around.
Concluding from yours and Bjorn's suggestion, I will drop the
device_wakeup_disable() call form .resume() and send the fix. I will also track
the drivers who got similar upgrades and went un-noticed.
Thanks for doing this!
quoted
As Bjorn mentioned, the problem is that I don't have hardware to test, so I just
replicated the legacy behaviour in generic by replacing
pci_enable_wake(....,false) with device_wakeup_disable().

So, from now, while upgrading drivers with generic PM, should I completely drop
the pci_enable_wake(....,false) calls if both .suspend() and .resume() try to
wakeup-disable the device?
I guess the best approach is to rely on the PCI core to do the right thing.
But mention this change in the commit message that we will have a
track of the changes properly.
Okay. Thanks !
Vaibhav Gupta
-- 
With Best Regards,
Andy Shevchenko
_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help