From: Bjorn Helgaas <helgaas@kernel.org>
To: Vaibhav Gupta <vaibhavgupta40@gmail.com>,
linux1394-devel@lists.sourceforge.net,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1] firewire: ohci: use generic power management
Date: Mon, 9 Dec 2024 10:25:03 -0600 [thread overview]
Message-ID: <20241209162503.GA3198764@bhelgaas> (raw)
In-Reply-To: <20241207011316.GA148867@workstation.local>
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 <vaibhavgupta40@gmail.com>
> > ---
> > 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
next prev parent reply other threads:[~2024-12-09 16:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-20 15:07 [Linux-kernel-mentees] [PATCH v1] firewire: ohci: use generic power management Vaibhav Gupta
2020-07-20 15:07 ` Vaibhav Gupta
2024-12-07 1:13 ` Takashi Sakamoto
2024-12-09 16:25 ` Bjorn Helgaas [this message]
2024-12-10 8:19 ` Vaibhav Gupta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241209162503.GA3198764@bhelgaas \
--to=helgaas@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux1394-devel@lists.sourceforge.net \
--cc=vaibhavgupta40@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.