Re: [PATCH v2 01/15] scsi: megaraid_sas: use generic power management

2020-09-09 Thread Vaibhav Gupta
On Wed, Sep 09, 2020 at 08:23:32AM -0500, Bjorn Helgaas wrote: > On Wed, Sep 09, 2020 at 03:33:15PM +0530, Vaibhav Gupta wrote: > > On Tue, Sep 08, 2020 at 12:32:09PM -0500, Bjorn Helgaas wrote: > > > On Mon, Jul 20, 2020 at 07:04:14PM +0530, Vaibhav Gupta wrote: > > > > With legacy PM hooks, it wa

Re: [PATCH v2 01/15] scsi: megaraid_sas: use generic power management

2020-09-09 Thread Bjorn Helgaas
On Wed, Sep 09, 2020 at 08:50:58PM +0530, Vaibhav Gupta wrote: > On Wed, Sep 09, 2020 at 08:23:32AM -0500, Bjorn Helgaas wrote: > > On Wed, Sep 09, 2020 at 03:33:15PM +0530, Vaibhav Gupta wrote: > > > On Tue, Sep 08, 2020 at 12:32:09PM -0500, Bjorn Helgaas wrote: > > > > On Mon, Jul 20, 2020 at 07:

Re: [PATCH v2 01/15] scsi: megaraid_sas: use generic power management

2020-09-09 Thread Bjorn Helgaas
On Wed, Sep 09, 2020 at 03:33:15PM +0530, Vaibhav Gupta wrote: > On Tue, Sep 08, 2020 at 12:32:09PM -0500, Bjorn Helgaas wrote: > > On Mon, Jul 20, 2020 at 07:04:14PM +0530, Vaibhav Gupta wrote: > > > With legacy PM hooks, it was the responsibility of a driver to manage PCI > > > states and also th

Re: [PATCH v2 01/15] scsi: megaraid_sas: use generic power management

2020-09-09 Thread Vaibhav Gupta
On Tue, Sep 08, 2020 at 12:32:09PM -0500, Bjorn Helgaas wrote: > On Mon, Jul 20, 2020 at 07:04:14PM +0530, Vaibhav Gupta wrote: > > With legacy PM hooks, it was the responsibility of a driver to manage PCI > > states and also the device's power state. The generic approach is to let > > the PCI core

Re: [PATCH v2 01/15] scsi: megaraid_sas: use generic power management

2020-09-08 Thread Bjorn Helgaas
On Mon, Jul 20, 2020 at 07:04:14PM +0530, Vaibhav Gupta wrote: > With legacy PM hooks, it was the responsibility of a driver to manage PCI > states and also the device's power state. The generic approach is to let > the PCI core handle the work. > > PCI core passes "struct device*" as an argument

Re: [PATCH v2 01/15] scsi: megaraid_sas: use generic power management

2020-09-08 Thread Vaibhav Gupta
On Mon, Jul 20, 2020 at 07:04:14PM +0530, Vaibhav Gupta wrote: > With legacy PM hooks, it was the responsibility of a driver to manage PCI > states and also the device's power state. The generic approach is to let > the PCI core handle the work. > > PCI core passes "struct device*" as an argument

[PATCH v2 01/15] scsi: megaraid_sas: use generic power management

2020-07-20 Thread Vaibhav Gupta
With legacy PM hooks, it was the responsibility of a driver to manage PCI states and also the device's power state. The generic approach is to let the PCI core handle the work. PCI core passes "struct device*" as an argument to the .suspend() and .resume() callbacks. As the .suspend() work with "s