Star64_linux/drivers/net/ethernet/qlogic/qlcnic
Vaibhav Gupta 7ada9a5e48 qlcninc: use generic power management
With legacy PM, drivers themselves were responsible for managing the
device's power states and taking care of register states. And they use PCI
helper functions to do it.

After upgrading to the generic structure, PCI core will take care of
required tasks and drivers should do only device-specific operations.

.suspend() calls __qlcnic_shutdown, which then calls qlcnic_82xx_shutdown;
.resume()  calls __qlcnic_resume,   which then calls qlcnic_82xx_resume;

Both ...82xx..() are define in
drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c and are used only in
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c.

Hence upgrade them and remove PCI function calls, like pci_save_state() and
pci_enable_wake(), inside them

Compile-tested only.

Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-07-04 18:02:06 -07:00
..
Makefile
qlcnic.h qlcnic: remove unused inline function qlcnic_hw_write_wx_2M 2020-04-25 20:42:57 -07:00
qlcnic_83xx_hw.c qlcnic: fix missing release in qlcnic_83xx_interrupt_test. 2020-05-25 18:06:09 -07:00
qlcnic_83xx_hw.h
qlcnic_83xx_init.c qlcnic: Fix bad kzalloc null test 2020-03-26 11:44:22 -07:00
qlcnic_83xx_vnic.c
qlcnic_ctx.c cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
qlcnic_dcb.c qlcnic: fix a return in qlcnic_dcb_get_capability() 2018-10-22 19:34:16 -07:00
qlcnic_dcb.h
qlcnic_ethtool.c net: qlnic: let core reject the unsupported coalescing parameters 2020-03-14 21:13:55 -07:00
qlcnic_hdr.h
qlcnic_hw.c qlcninc: use generic power management 2020-07-04 18:02:06 -07:00
qlcnic_hw.h
qlcnic_init.c
qlcnic_io.c net: Use skb accessors in network drivers 2019-07-22 20:47:56 -07:00
qlcnic_main.c qlcninc: use generic power management 2020-07-04 18:02:06 -07:00
qlcnic_minidump.c qlcnic: Fix CPU soft lockup while collecting firmware dump 2020-01-23 21:13:33 +01:00
qlcnic_sriov.h
qlcnic_sriov_common.c qlcnic: use true,false for bool variable in qlcnic_sriov_common.c 2020-05-05 11:39:42 -07:00
qlcnic_sriov_pf.c qlcnic: remove redundant assignment to variable err 2019-07-03 11:33:55 -07:00
qlcnic_sysfs.c qlcnic: Use kobj_to_dev() instead 2020-06-15 13:05:50 -07:00