]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita3b0db7f66f28c205f1de5272af70b7c09f5504c
tree1e82831ff929499d49518c7cb46b672e9f03aadf
parentae03787530520f98a09fbc3e5e3caadaadfc04c1
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