OSDN Git Service

i40e: use newer generic PM support instead of legacy PM callbacks
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 14 Jul 2017 13:27:03 +0000 (09:27 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 29 Sep 2017 19:51:00 +0000 (12:51 -0700)
commit0e5d3da400558b7d30586a2cc1afe02276445636
tree1e82831ff929499d49518c7cb46b672e9f03aadf
parentc17401a1dd210a5f22ab1ec7c7366037c158a14c
i40e: use newer generic PM support instead of legacy PM callbacks

Stop using the old legacy PM support, since we now have stable support
for the newer generic PM callbacks.

This has several advantages. First, we no longer have to manage our
own pci_save_state() and power changes, as it's preferred to have the
PCI stack do this. Second, these routines get called for both hibernate
and suspend to ram, so we can have the driver properly handle all the
suspend/resume flows that it needs to.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c