]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: enetc: remove ERR050089 workaround for i.MX95
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 30 Oct 2024 09:39:18 +0000 (17:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Nov 2024 10:03:51 +0000 (10:03 +0000)
commit86831a3f4cd4c924dd78cf0d6e4d73acacfe1b11
tree4aa7acbb4869ec8d7947327d9879b0bbe4431bc7
parent3774409fd4c6cfe78ac5f14b853cafb67c7841a9
net: enetc: remove ERR050089 workaround for i.MX95

The ERR050089 workaround causes performance degradation and potential
functional issues (e.g., RCU stalls) under certain workloads. Since
new SoCs like i.MX95 do not require this workaround, use a static key
to compile out enetc_lock_mdio() and enetc_unlock_mdio() at runtime,
improving performance and avoiding unnecessary logic.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/enetc/enetc_hw.h
drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c