linux/drivers/net/ethernet
Jacob Keller 5a7cee1cb4 ice: fix pin assignment for E810-T without SMA control
Since commit 43c4958a3d ("ice: Merge pin initialization of E810 and E810T
adapters"), the ice_ptp_setup_pins_e810() function has been used for both
E810 and E810-T devices. The new implementation only distinguishes between
whether the device has SMA control or not. It was assumed this is always
true for E810-T devices. In addition, it does not set the n_per_out value
appropriately when SMA control is enabled.

In some cases, the E810-T device may not have access to SMA control. In
that case, the E810-T device actually has access to fewer pins than a
standard E810 device.

Fix the implementation to correctly assign the appropriate pin counts for
E810-T devices both with and without SMA control. The mentioned commit
already includes the appropriate macro values for these pin counts but they
were unused.

Instead of assigning the default E810 values and then overwriting them,
handle the cases separately in order of E810-T with SMA, E810-T without
SMA, and then standard E810. This flow makes following the logic easier.

Fixes: 43c4958a3d ("ice: Merge pin initialization of E810 and E810T adapters")
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Sunitha Mekala <sunithax.d.mekala@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2023-09-18 10:41:03 -07:00
..
3com
8390
actions
adaptec
adi net:ethernet:adi:adin1110: Fix forwarding offload 2023-09-11 08:30:22 +01:00
aeroflex
agere
alacritech
allwinner
alteon
altera net: altera-tse: make ALTERA_TSE depend on HAS_IOMEM 2023-08-18 10:18:51 -07:00
amazon net: ena: Use pci_dev_id() to simplify the code 2023-08-17 19:13:09 -07:00
amd pds_core: add attempts to fix broken PCI 2023-09-18 09:28:22 +01:00
apm
apple
aquantia
arc
asix
atheros atl1c: Work around the DMA RX overflow issue 2023-09-14 10:14:52 +02:00
broadcom net: ethernet: bcmasp: fix possible OOB write in bcmasp_netfilt_get_all_active() 2023-09-11 08:26:10 +01:00
brocade
cadence net: macb: fix sleep inside spinlock 2023-09-12 14:58:44 +02:00
calxeda
cavium
chelsio - Some swap cleanups from Ma Wupeng ("fix WARN_ON in add_to_avail_list") 2023-08-29 14:25:26 -07:00
cirrus
cisco
cortina net: gemini: Remove redundant of_match_ptr() 2023-08-16 09:59:40 +01:00
davicom net: dm9051: Use PTR_ERR_OR_ZERO() to simplify code 2023-08-23 18:57:30 -07:00
dec
dlink
emulex
engleder
ezchip
faraday
freescale Including fixes from netfilter and bpf. 2023-09-07 18:33:07 -07:00
fujitsu
fungible
google gve: Use size_add() in call to struct_size() 2023-09-17 18:50:33 +01:00
hisilicon net: hns3: remove GSO partial feature bit 2023-09-07 11:08:03 +02:00
huawei net: hinic: Use devm_kasprintf() 2023-09-13 12:21:09 +01:00
i825xx
ibm Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-08-24 10:51:39 -07:00
intel ice: fix pin assignment for E810-T without SMA control 2023-09-18 10:41:03 -07:00
litex
marvell octeon_ep: support to fetch firmware info 2023-09-18 07:08:53 +01:00
mediatek net: ethernet: mtk_wed: do not assume offload callbacks are always set 2023-09-16 11:18:57 +01:00
mellanox mlxsw: Use size_mul() in call to struct_size() 2023-09-18 09:36:20 +01:00
micrel
microchip net: microchip: lan743x: add fixed phy unregister support 2023-09-17 11:52:58 +01:00
microsoft
moxa
mscc net: mscc: ocelot: Remove unused declarations 2023-08-22 10:29:15 -07:00
myricom
natsemi
neterion
netronome
ni
nvidia
nxp
oki-semi
packetengines
pasemi
pensando ionic: Remove unused declarations 2023-08-22 10:30:06 -07:00
qlogic qed/qede: Remove unused declarations 2023-08-23 08:21:37 +01:00
qualcomm net: qualcomm: Remove redundant of_match_ptr() 2023-08-16 09:59:40 +01:00
rdc
realtek r8169: fix ASPM-related issues on a number of systems with NIC version from RTL8168h 2023-08-28 10:22:57 +01:00
renesas net: renesas: rswitch: Add spin lock protection for irq {un}mask 2023-09-14 10:26:41 +02:00
rocker
samsung
seeq
sfc sfc: make coding style of PTP addresses consistent with core 2023-09-16 11:38:36 +01:00
sgi
silan
sis
smsc
socionext
stmicro net: stmmac: make stmmac_{probe|remove}_config_dt static 2023-09-18 12:44:36 +01:00
sun
sunplus
synopsys
tehuti
ti net: ti: icssg-prueth: Add support for half duplex operation 2023-09-15 13:54:34 +01:00
toshiba net: spider_net: Use size_add() in call to struct_size() 2023-09-18 09:39:41 +01:00
tundra
vertexcom
via
wangxun net: wangxun: move MDIO bus implementation to the library 2023-09-14 15:18:40 +02:00
wiznet
xilinx
xircom
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
Kconfig
korina.c
lantiq_etop.c
lantiq_xrx200.c
Makefile