> 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 2/5] igbvf: netdev: use generic power > management > > Remove legacy PM callbacks and use generic operations. With legacy code, > drivers were responsible for handling PCI PM operations like > pci_save_state(). In generic code, all these hre andled by PCI core. > > The generic suspend() and resume() are called at the same point the legacy > ones were called. Thus, it does not affect the normal functioning of the > driver. > > __maybe_unused attribute is used with .resume() but not with .suspend(), as > .suspend() is calleb by .shutdown(). > > Compile-tested only. > > Signed-off-by: Vaibhav Gupta <vaibhavgupt...@gmail.com> > --- > drivers/net/ethernet/intel/igbvf/netdev.c | 37 +++++------------------ > 1 file changed, 8 insertions(+), 29 deletions(-) >
Tested-by: Aaron Brown <aaron.f.br...@intel.com>