]> git.itanic.dy.fi Git - linux-stable/commit
e1000e: Use PCI_EXP_LNKSTA_NLW & FIELD_GET() instead of custom defines/code
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 21 Nov 2023 12:34:27 +0000 (14:34 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 12 Dec 2023 18:55:22 +0000 (10:55 -0800)
commit4c39e76846b2500910b5378b1e868e6c4d5e6df8
tree1d4986fcbab05bba811551036f5856363f7f2aec
parent4f6011678d3828e31a6371b3f05605e0dc1659bb
e1000e: Use PCI_EXP_LNKSTA_NLW & FIELD_GET() instead of custom defines/code

e1000e has own copy of PCI Negotiated Link Width field defines. Use the
ones from include/uapi/linux/pci_regs.h instead of the custom ones and
remove the custom ones and convert to FIELD_GET().

Suggested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
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>
drivers/net/ethernet/intel/e1000e/defines.h
drivers/net/ethernet/intel/e1000e/mac.c