OpenCloudOS-Kernel/drivers/scsi/esas2r
Vaibhav Gupta 5f2d8c3650 scsi: esas2r: Use generic power management
Drivers should do only device-specific jobs. But in general, drivers using
legacy PCI PM framework for .suspend()/.resume() have to manage many PCI
PM-related tasks themselves which can be done by PCI Core itself. This
brings extra load on the driver and it directly calls PCI helper functions
to handle them.

Switch to the new generic framework by updating function signatures and
define a "struct dev_pm_ops" variable to bind PM callbacks. Also, remove
unnecessary calls to the PCI Helper functions along with the legacy
.suspend & .resume bindings.

Link: https://lore.kernel.org/r/20201102164730.324035-12-vaibhavgupta40@gmail.com
Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-11-25 23:14:31 -05:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
atioctl.h
atvda.h
esas2r.h scsi: esas2r: Use generic power management 2020-11-25 23:14:31 -05:00
esas2r_disc.c scsi: esas2r: esas2r_disc: Place brackets around a potentially empty if() 2020-11-10 22:27:46 -05:00
esas2r_flash.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
esas2r_init.c scsi: esas2r: Use generic power management 2020-11-25 23:14:31 -05:00
esas2r_int.c scsi: esas2r: esas2r_int: Add brackets around potentially empty if()s 2020-11-10 22:27:47 -05:00
esas2r_io.c [SCSI] esas2r: Directly call kernel functions for atomic bit operations 2013-10-25 09:58:59 +01:00
esas2r_ioctl.c scsi: esas2r: Remove unnecessary casts 2020-08-24 23:36:33 -04:00
esas2r_log.c scsi: esas2r: Demote a few non-conformant kerneldoc headers 2020-07-24 22:33:07 -04:00
esas2r_log.h scsi: esas2r: Fix format string type mistakes 2017-01-09 23:52:26 -05:00
esas2r_main.c scsi: esas2r: Use generic power management 2020-11-25 23:14:31 -05:00
esas2r_targdb.c [SCSI] esas2r: Directly call kernel functions for atomic bit operations 2013-10-25 09:58:59 +01:00
esas2r_vda.c [SCSI] esas2r: Cleanup snprinf formatting of firmware version 2013-10-25 09:58:59 +01:00