mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/3] net: phy: marvell-88x2222: a couple of improvements
@ 2021-04-13 20:54 Ivan Bornyakov
  2021-04-13 20:54 ` [PATCH net-next v2 1/3] net: phy: marvell-88x2222: check that link is operational Ivan Bornyakov
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ivan Bornyakov @ 2021-04-13 20:54 UTC (permalink / raw)
  Cc: Ivan Bornyakov, system, andrew, hkallweit1, linux, davem, kuba,
	netdev, linux-kernel

First, there are some SFP modules that only uses RX_LOS for link
indication. Add check that link is operational before actual read of
line-side 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.

Changelog:
  v1 -> v2:
    * make checking that link is operational more friendly for
      trancievers without SFP cages.
    * split swapping 1G/10G modes into non-functional and functional
      commits for the sake of easier review.

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

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

-- 
2.26.3



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-14 20:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-13 20:54 [PATCH net-next v2 0/3] net: phy: marvell-88x2222: a couple of improvements Ivan Bornyakov
2021-04-13 20:54 ` [PATCH net-next v2 1/3] net: phy: marvell-88x2222: check that link is operational Ivan Bornyakov
2021-04-13 20:54 ` [PATCH net-next v2 2/3] net: phy: marvell-88x2222: move read_status after config_aneg Ivan Bornyakov
2021-04-13 20:54 ` [PATCH net-next v2 3/3] net: phy: marvell-88x2222: swap 1G/10G modes on autoneg Ivan Bornyakov
2021-04-14 20:00 ` [PATCH net-next v2 0/3] net: phy: marvell-88x2222: a couple of improvements patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®