> -----Original Message----- > From: Intel-wired-lan <intel-wired-lan-boun...@osuosl.org> On Behalf Of > Vaibhav Gupta > Sent: Monday, June 29, 2020 2:30 AM > To: Bjorn Helgaas <helg...@kernel.org>; Bjorn Helgaas > <bhelg...@google.com>; bj...@helgaas.com; Vaibhav Gupta > <vaibhav.varo...@gmail.com>; David S. Miller <da...@davemloft.net>; > Jakub Kicinski <k...@kernel.org>; Kirsher, Jeffrey T > <jeffrey.t.kirs...@intel.com> > Cc: Vaibhav Gupta <vaibhavgupt...@gmail.com>; net...@vger.kernel.org; > linux-kernel@vger.kernel.org; intel-wired-...@lists.osuosl.org; > sk...@linuxfoundation.org; linux-kernel- > ment...@lists.linuxfoundation.org > Subject: [Intel-wired-lan] [PATCH v1 1/5] iavf: use generic power > management > > With the support of generic PM callbacks, drivers no longer need to use > legacy .suspend() and .resume() in which they had to maintain PCI states > changes and device's power state themselves. The required operations are > done by PCI core. > > PCI drivers are not expected to invoke PCI helper functions like > pci_save/restore_state(), pci_enable/disable_device(), > pci_set_power_state(), etc. Their tasks are completed by PCI core itself. > > Compile-tested only. > > Signed-off-by: Vaibhav Gupta <vaibhavgupt...@gmail.com> > --- > drivers/net/ethernet/intel/iavf/iavf_main.c | 45 ++++++--------------- > 1 file changed, 12 insertions(+), 33 deletions(-)
Tested-by: Andrew Bowers <andrewx.bow...@intel.com>