netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/4] phylib: add hardware resolved pause mode support for marvell PHYs
@ 2020-02-17 15:53 Russell King - ARM Linux admin
  2020-02-17 15:54 ` [PATCH net-next 1/4] net: phy: marvell10g: read copper results from CSSR1 Russell King
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Russell King - ARM Linux admin @ 2020-02-17 15:53 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli, Heiner Kallweit; +Cc: David S. Miller, netdev

Hi,

Marvell PHYs provide a register that gives us the resolution results
for speed, duplex and the pause enablement status. This series adds
support for using this, and passing it through phylib via the newly
introduced phy_get_pause() interface.

In order to do this, we need to read the copper PHY results from the
correct register; now that I have access to the Marvell documentation,
this becomes much easier for the 88x3310 PHY.

I also find that the code in the marvell 1G driver does not correctly
check that the resolved state in the status register is valid prior
to using it, so there is a patch for that too; I don't deem it
important enough for it to be sent via the -net tree, which would add
additional dependency complexity for this series.

 drivers/net/phy/marvell.c    |  46 +++++++++++++-
 drivers/net/phy/marvell10g.c | 147 ++++++++++++++++++++++++++++---------------
 drivers/net/phy/phy_device.c |   6 ++
 include/linux/phy.h          |   9 +++
 4 files changed, 154 insertions(+), 54 deletions(-)

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up
According to speedtest.net: 11.9Mbps down 500kbps up

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

end of thread, other threads:[~2020-02-18  1:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-17 15:53 [PATCH net-next 0/4] phylib: add hardware resolved pause mode support for marvell PHYs Russell King - ARM Linux admin
2020-02-17 15:54 ` [PATCH net-next 1/4] net: phy: marvell10g: read copper results from CSSR1 Russell King
2020-02-18  1:37   ` Andrew Lunn
2020-02-17 15:54 ` [PATCH net-next 2/4] net: phy: marvell: don't interpret PHY status unless resolved Russell King
2020-02-18  1:38   ` Andrew Lunn
2020-02-17 15:54 ` [PATCH net-next 3/4] net: phy: add resolved pause support Russell King
2020-02-18  1:44   ` Andrew Lunn
2020-02-17 15:54 ` [PATCH net-next 4/4] net: phy: marvell*: add support for hw resolved pause modes Russell King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).