Re: [PATCH v1 00/11] net: ethernet: use generic power management
From: Vaibhav Gupta
Date: Wed Jul 01 2020 - 09:07:27 EST
On Wed, Jul 1, 2020 at 6:31 PM Vaibhav Gupta <vaibhavgupta40@xxxxxxxxx> wrote:
>
> Linux Kernel Mentee: Remove Legacy Power Management.
>
> The purpose of this patch series is to remove legacy power management callbacks
> from amd ethernet drivers.
s/amd/net
--Vaibhav Gupta
>
> The callbacks performing suspend() and resume() operations are still calling
> pci_save_state(), pci_set_power_state(), etc. and handling the power management
> themselves, which is not recommended.
>
> The conversion requires the removal of the those function calls and change the
> callback definition accordingly and make use of dev_pm_ops structure.
>
> All patches are compile-tested only.
>
> Vaibhav Gupta (11):
> typhoon: use generic power management
> ne2k-pci: use generic power management
> starfire: use generic power management
> ena_netdev: use generic power management
> liquidio: use generic power management
> sundance: use generic power management
> benet: use generic power management
> mlx4: use generic power management
> ksz884x: use generic power management
> vxge: use generic power management
> natsemi: use generic power management
>
> drivers/net/ethernet/3com/typhoon.c | 53 +++++++++++--------
> drivers/net/ethernet/8390/ne2k-pci.c | 29 +++-------
> drivers/net/ethernet/adaptec/starfire.c | 23 +++-----
> drivers/net/ethernet/amazon/ena/ena_netdev.c | 21 +++-----
> .../net/ethernet/cavium/liquidio/lio_main.c | 31 ++---------
> drivers/net/ethernet/dlink/sundance.c | 27 +++-------
> drivers/net/ethernet/emulex/benet/be_main.c | 22 +++-----
> drivers/net/ethernet/mellanox/mlx4/main.c | 11 ++--
> drivers/net/ethernet/micrel/ksz884x.c | 25 ++++-----
> drivers/net/ethernet/natsemi/natsemi.c | 26 +++------
> .../net/ethernet/neterion/vxge/vxge-main.c | 14 ++---
> 11 files changed, 100 insertions(+), 182 deletions(-)
>
> --
> 2.27.0
>