]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: dwc-qos-eth: move MDIO bus locking into stmmac_mdio
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 15 Oct 2025 16:10:41 +0000 (17:10 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 16 Oct 2025 22:58:21 +0000 (15:58 -0700)
commit12a7b7bc14273e19a57a49e0ab92e7eb635de8a4
treee91e3b95053c4744ab01d11947d3f2708eec35d9
parentf18c231fb12a9662bb9ebd7613e8f71fc497baf1
net: stmmac: dwc-qos-eth: move MDIO bus locking into stmmac_mdio

Rather than dwc-qos-eth manipulating the MDIO bus lock directly, add
helpers to the stmmac MDIO layer and use them in dwc-qos-eth. This
improves my commit 87f43e6f06a2 ("net: stmmac: dwc-qos: calibrate tegra
with mdio bus idle").

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/E1v945J-0000000AmeJ-1GOb@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c