]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: marvell: Ensure SGMII auto-negotiation is enabled for 88E1111
authorRobert Hancock <robert.hancock@calian.com>
Tue, 16 Feb 2021 20:53:30 +0000 (14:53 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2021 22:16:58 +0000 (14:16 -0800)
commitd54512ebee954356d07b6c0cb4098b6f4da6ca8d
tree1ea63b564971282a8015e2c09ecd2455dec0cb4f
parent16fd6aa1082f1be7bf6d13b69545f8db5f452de3
net: phy: marvell: Ensure SGMII auto-negotiation is enabled for 88E1111

When 88E1111 is operating in SGMII mode, auto-negotiation should be enabled
on the SGMII side so that the link will come up properly with PCSes which
normally have auto-negotiation enabled. This is normally the case when the
PHY defaults to SGMII mode at power-up, however if we switched it from some
other mode like 1000Base-X, as may happen in some SFP module situations,
it may not be, particularly for modules which have 1000Base-X
auto-negotiation defaulting to disabled.

Call genphy_check_and_restart_aneg on the fiber page to ensure that auto-
negotiation is properly enabled on the SGMII interface.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c