net: stmmac: socfpga: Enable internal GMII when using 1000BaseX
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Thu, 24 Apr 2025 07:12:20 +0000 (09:12 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 28 Apr 2025 13:17:46 +0000 (06:17 -0700)
commit6fba40e7f61033a2350bd812c5faa1d30333eefd
treeb5093b6cda544157bd0e281085106894ae65c2af
parentf438eee2c8c93320d70cdee7630a06baaa47a304
net: stmmac: socfpga: Enable internal GMII when using 1000BaseX

Dwmac Socfpga may be used with an instance of a Lynx / Altera TSE PCS,
in which case it gains support for 1000BaseX.

It appears that the PCS is wired to the MAC through an internal GMII
bus. Make sure that we enable the GMII_MII mode for the internal MAC when
using 1000BaseX.

Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20250424071223.221239-2-maxime.chevallier@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c