linux/drivers/net/ethernet/intel/e1000e
Jesse Brandeburg 75a3f93b53 net: intel: implement modern PM ops declarations
Switch the Intel networking drivers to use the new power management ops
declaration formats and macros, which allows us to drop __maybe_unused,
as well as a bunch of ifdef checking CONFIG_PM.

This is safe to do because the compiler drops the unused functions,
verified by checking for any of the power management function symbols
being present in System.map for a build without CONFIG_PM.

If a driver has runtime PM, define the ops with pm_ptr(), and if the
driver has Simple PM, use pm_sleep_ptr(), as well as the new versions of
the macros for declaring the members of the pm_ops structs.

Checked with network-enabled allnoconfig, allyesconfig, allmodconfig on
x64_64.

Reviewed-by: Alan Brady <alan.brady@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2024-03-29 08:58:43 -07:00
..
80003es2lan.c intel: legacy: field get conversion 2023-12-18 11:20:43 -08:00
80003es2lan.h
82571.c intel: legacy: field get conversion 2023-12-18 11:20:43 -08:00
82571.h
defines.h e1000e: Use pcie_capability_read_word() for reading LNKSTA 2023-12-12 12:21:29 -08:00
e1000.h e1000e: correct maximum frequency adjustment values 2024-01-29 10:01:08 -08:00
e1000e_trace.h e1000e: Add e1000e trace module 2022-11-02 11:08:38 -07:00
ethtool.c net: intel: e1000e: Use linkmode helpers for EEE 2024-02-28 12:18:04 +00:00
hw.h e1000e: Add support for the next LOM generation 2023-08-24 12:55:25 -07:00
ich8lan.c intel: legacy: Partial revert of field get conversion 2024-03-05 10:07:04 -08:00
ich8lan.h
mac.c intel: legacy: field get conversion 2023-12-18 11:20:43 -08:00
mac.h net: e1000e: Remove unused declarations 2023-08-15 19:05:17 -07:00
Makefile e1000e: Add e1000e trace module 2022-11-02 11:08:38 -07:00
manage.c
manage.h
netdev.c net: intel: implement modern PM ops declarations 2024-03-29 08:58:43 -07:00
nvm.c
nvm.h
param.c
phy.c intel: legacy: field get conversion 2023-12-18 11:20:43 -08:00
phy.h
ptp.c e1000e: correct maximum frequency adjustment values 2024-01-29 10:01:08 -08:00
regs.h