mbox series

[net-next,0/2] net: phy: marvell-88x2222: a couple of improvements

Message ID cover.1618227910.git.i.bornyakov@metrotek.ru (mailing list archive)
Headers show
Series net: phy: marvell-88x2222: a couple of improvements | expand

Message

Ivan Bornyakov April 12, 2021, 12:16 p.m. UTC
First, there are some SFP modules that only uses RX_LOS for link
indication. Add check that SFP link is operational before actual read of
link status.

Second, it is invalid to set 10G speed without autonegotiation,
according to phy_ethtool_ksettings_set(). Implement switching between
10GBase-R and 1000Base-X/SGMII if autonegotiation can't complete but
there is signal in line.

Ivan Bornyakov (2):
  net: phy: marvell-88x2222: check that link is operational
  net: phy: marvell-88x2222: swap 1G/10G modes on autoneg

 drivers/net/phy/marvell-88x2222.c | 296 +++++++++++++++++++-----------
 1 file changed, 191 insertions(+), 105 deletions(-)