Re: [PATCH v1] firewire: ohci: use generic power management

Bjorn Helgaas <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.kernel.firewire.devel
Message-ID <20241209162503.GA3198764@bhelgaas>
On Sat, Dec 07, 2024 at 10:13:16AM +0900, Takashi Sakamoto wrote:
> On Mon, Jul 20, 2020 at 08:37:16PM +0530, Vaibhav Gupta wrote:
> > Drivers using legacy PM have to manage PCI states and device's PM states
> > themselves. They also need to take care of configuration registers.
> > 
> > With improved and powerful support of generic PM, PCI Core takes care of
> > above mentioned, device-independent, jobs.
> > 
> > This driver makes use of PCI helper functions like
> > pci_save/restore_state(), pci_disable_device() and pci_set_power_state() to
> > do required operations. In generic mode, they are no longer needed.
> > 
> > Change function parameter in both .suspend() and .resume() to
> > "struct device*" type. Use to_pci_dev() to get "struct pci_dev*" variable.
> > 
> > Compile-tested only.
> > 
> > Signed-off-by: Vaibhav Gupta <[email protected]>
> > ---
> >  drivers/firewire/ohci.c | 43 ++++++++++++-----------------------------
> >  1 file changed, 12 insertions(+), 31 deletions(-)
> 
> Although it takes a long time since the patch was posted, I applied it
> now to for-next branch with my handy changes to optimize to v6.13-rc1. 

Great!  Thanks very much for rescuing this patch!  We still have a
couple stragglers, but we may yet be able to retire the legacy PCI
power management.

> I still have a slight concern about the operation specific to powermac
> platforms, however let us fix when receiving any reports from the users.

Please let us know if/when you see any reports, and we'll be happy to
help fix them.

Bjorn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.