linux/drivers/net/ethernet
Ilpo Järvinen 7f4c9c44d1 net/mlx5: Use RMW accessors for changing LNKCTL
[ Upstream commit 30de872537 ]

Don't assume that only the driver would be accessing LNKCTL of the upstream
bridge. ASPM policy changes can trigger write to LNKCTL outside of driver's
control.

Use RMW capability accessors which do proper locking to avoid losing
concurrent updates to the register value.

Suggested-by: Lukas Wunner <lukas@wunner.de>
Fixes: eabe8e5e88 ("net/mlx5: Handle sync reset now event")
Link: https://lore.kernel.org/r/20230717120503.15276-8-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-13 09:42:48 +02:00
..
3com 3c589_cs: Fix an error handling path in tc589_probe() 2023-05-30 14:03:33 +01:00
8390
actions
adaptec
adi net: ethernet: adi: adin1110: Fix multicast offloading 2023-02-01 08:34:45 +01:00
aeroflex
agere
alacritech
allwinner
alteon
altera
amazon net: ena: fix shift-out-of-bounds in exponential backoff 2023-07-23 13:49:44 +02:00
amd amd-xgbe: fix the false linkup in xgbe_phy_status 2023-06-09 10:34:01 +02:00
apm
apple
aquantia net: atlantic: Fix crash when XDP is enabled but no program is loaded 2023-03-22 13:33:50 +01:00
arc
asix
atheros ethernet: atheros: fix return value check in atl1c_tso_csum() 2023-09-13 09:42:21 +02:00
broadcom bnx2x: fix page fault following EEH recovery 2023-09-13 09:42:24 +02:00
brocade
cadence net: macb: In ZynqMP resume always configure PS GTR for non-wakeup source 2023-08-23 17:52:33 +02:00
calxeda
cavium
chelsio ipv4: fix data-races around inet->inet_id 2023-08-30 16:11:02 +02:00
cirrus
cisco
cortina
davicom
dec
dlink
emulex benet: fix return value check in be_lancer_xmit_workarounds() 2023-08-03 10:24:02 +02:00
engleder tsnep: Fix TX queue stop/wake for multiple queues 2023-02-01 08:34:48 +01:00
ezchip
faraday
freescale net: enetc: use EXPORT_SYMBOL_GPL for enetc_phc_index 2023-09-06 21:27:00 +01:00
fujitsu
fungible
google gve: Set default duplex configuration to full 2023-07-23 13:49:22 +02:00
hisilicon net: hns3: restore user pause configure when disable autoneg 2023-09-13 09:42:24 +02:00
huawei
i825xx i825xx: sni_82596: use eth_hw_addr_set() 2023-03-22 13:33:50 +01:00
ibm ibmveth: Use dcbf rather than dcbfl 2023-08-30 16:11:05 +02:00
intel ice: avoid executing commands on other ports when driving sync 2023-09-13 09:42:34 +02:00
litex net: ethernet: litex: add support for 64 bit stats 2023-07-27 08:50:35 +02:00
marvell cteonxt2-pf: Fix backpressure config for multiple PFC priorities to work simultaneously 2023-09-13 09:42:35 +02:00
mediatek net: ethernet: mtk_eth_soc: handle probe deferral 2023-07-27 08:50:40 +02:00
mellanox net/mlx5: Use RMW accessors for changing LNKCTL 2023-09-13 09:42:48 +02:00
micrel
microchip net: lan743x: Don't sleep in atomic context 2023-07-23 13:49:18 +02:00
microsoft net: mana: Fix MANA VF unload when hardware is unresponsive 2023-08-16 18:27:21 +02:00
moxa
mscc net: mscc: ocelot: don't keep PTP configuration of all ports in single structure 2023-07-19 16:22:01 +02:00
myricom
natsemi net/sonic: use dma_mapping_error() for error check 2023-03-30 12:49:09 +02:00
neterion
netronome nfp: ethtool: fix the bug of setting unsupported port speed 2023-02-25 11:25:41 +01:00
ni
nvidia forcedeth: Fix an error handling path in nv_probe() 2023-05-30 14:03:32 +01:00
nxp
oki-semi
packetengines
pasemi net: pasemi: Fix return type of pasemi_mac_start_tx() 2023-05-24 17:32:37 +01:00
pensando ionic: remove WARN_ON to prevent panic_on_warn 2023-07-23 13:49:22 +02:00
qlogic qede: fix firmware halt over suspend and resume 2023-08-23 17:52:36 +02:00
qualcomm net: qca_spi: Avoid high load if QCA7000 is not available 2023-06-28 11:12:30 +02:00
rdc
realtek r8169: fix RTL8168H and RTL8107E rx crc error 2023-04-06 12:10:45 +02:00
renesas sh_eth: avoid PHY being resumed when interface is not up 2023-03-22 13:33:50 +01:00
rocker
samsung
seeq
sfc sfc: Check firmware supports Ethernet PTP filter 2023-09-13 09:42:35 +02:00
sgi
silan
sis
smsc smsc911x: avoid PHY being resumed when interface is not up 2023-04-06 12:10:47 +02:00
socionext net: netsec: Ignore 'phy-mode' on SynQuacer in DT mode 2023-08-11 12:08:16 +02:00
stmicro net: stmmac: Apply redundant write work around on 4.xx too 2023-08-03 10:24:00 +02:00
sun cassini: Fix a memory leak in the error handling path of cas_init_one() 2023-05-24 17:32:47 +01:00
sunplus
synopsys
tehuti
ti net: ethernet: ti: cpsw_ale: Fix cpsw_ale_get_field()/cpsw_ale_set_field() 2023-07-27 08:50:40 +02:00
toshiba net/ps3_gelic_net: Use dma_mapping_error 2023-03-30 12:49:07 +02:00
tundra
vertexcom
via
wangxun
wiznet
xilinx net: ll_temac: fix error checking of irq_of_parse_and_map() 2023-08-11 12:08:16 +02:00
xircom xirc2ps_cs: Fix use after free bug in xirc2ps_detach 2023-03-30 12:49:04 +02:00
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
Kconfig
korina.c net: korina: handle clk prepare error in korina_probe() 2023-08-11 12:08:16 +02:00
lantiq_etop.c
lantiq_xrx200.c
Makefile