Re: [PATCH v2 04/15] scsi: aic79xx: use generic power management

2020-09-08 Thread Vaibhav Gupta
On Mon, Jul 20, 2020 at 07:04:17PM +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 04/15] scsi: aic79xx: 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. Driver was using PCI helper f