[Linux-kernel-mentees] [PATCH v2 11/15] scsi: hpsa: use generic power management

Don.Brace at microchip.com Don.Brace at microchip.com
Mon Jul 20 22:23:09 UTC 2020

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.

Change function parameter in both .suspend() and .resume() to "struct device*" type. The function body remains unchanged as it was empty.
Also, bind callbacks with "static const struct dev_pm_ops" variable.

Compile-tested only.

Signed-off-by: Vaibhav Gupta <vaibhavgupta40 at gmail.com>

Acked-by: Don Brace <don.brace at microsemi.com>
Compile-tested: no compile/sparse issues found.
Tested-by: Don Brace <don.brace at microsemi.com>
   (for hpsa driver)

More information about the Linux-kernel-mentees mailing list