mirror_ubuntu-kernels/drivers/net/ethernet/intel/e1000e
Ilpo Järvinen bf88f7d920 e1000e: Use pcie_capability_read_word() for reading LNKSTA
Use pcie_capability_read_word() for reading LNKSTA and remove the
custom define that matches to PCI_EXP_LNKSTA.

As only single user for cap_offset remains, replace it with a call to
pci_pcie_cap(). Instead of e1000_adapter, make local variable out of
pci_dev because both users are interested in it.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Naama Meir <naamax.meir@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2023-12-12 12:21:29 -08:00
..
80003es2lan.c
80003es2lan.h
82571.c e1000e: Fix error handling in e1000_set_d0_lplu_state_82571 2021-03-11 09:37:48 -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: Separate MTP board type from ADP 2022-11-02 10:58:08 -07:00
e1000e_trace.h e1000e: Add e1000e trace module 2022-11-02 11:08:38 -07:00
ethtool.c e1000e: Add support for the next LOM generation 2023-08-24 12:55:25 -07:00
hw.h e1000e: Add support for the next LOM generation 2023-08-24 12:55:25 -07:00
ich8lan.c e1000e: Add support for the next LOM generation 2023-08-24 12:55:25 -07:00
ich8lan.h Revert "e1000e: Fix possible HW unit hang after an s0ix exit" 2022-07-14 09:17:21 -07:00
mac.c e1000e: Use pcie_capability_read_word() for reading LNKSTA 2023-12-12 12:21:29 -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 e1000e: Add support for the next LOM generation 2023-08-24 12:55:25 -07:00
nvm.c
nvm.h
param.c intel: remove unused macros 2022-06-30 09:40:55 -07:00
phy.c e1000e: Enable Link Partner Advertised Support 2023-01-09 17:39:43 -08:00
phy.h
ptp.c e1000e: Add support for the next LOM generation 2023-08-24 12:55:25 -07:00
regs.h e1000e: Add polling mechanism to indicate CSME DPG exit 2021-07-20 16:11:36 -07:00