net: stmmac: make the pcs_lynx cleanup sequence specific to dwmac_socfpga
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Wed, 7 Jun 2023 13:59:39 +0000 (15:59 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 7 Jun 2023 20:30:12 +0000 (13:30 -0700)
commita8dd7404c21447b46e792a483f4d73af66ccaf8d
treea16402054f1830bb5963efc8624280e5319db29b
parentfae555f5a56f1d10cc5dc6ec3ad4f07243f6ce3c
net: stmmac: make the pcs_lynx cleanup sequence specific to dwmac_socfpga

So far, only the dwmac_socfpga variant of stmmac uses PCS Lynx. Use a
dedicated cleanup sequence for dwmac_socfpga instead of using the
generic stmmac one.

Fixes: 5d1f3fe7d2d5 ("net: stmmac: dwmac-sogfpga: use the lynx pcs driver")
Suggested-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/common.h
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c