netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] net: phy: add and use phy_check_downshift
@ 2020-03-18 21:27 Heiner Kallweit
  2020-03-18 21:29 ` [PATCH net-next 1/3] " Heiner Kallweit
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Heiner Kallweit @ 2020-03-18 21:27 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli, Russell King - ARM Linux, David Miller
  Cc: netdev

So far PHY drivers have to check whether a downshift occurred to be
able to notify the user. To make life of drivers authors a little bit
easier move the downshift notification to phylib. phy_check_downshift()
compares the highest mutually advertised speed with the actual value
of phydev->speed (typically read by the PHY driver from a
vendor-specific register) to detect a downshift.

Heiner Kallweit (3):
  net: phy: add and use phy_check_downshift
  net: phy: marvell: remove downshift warning now that phylib takes care
  net: phy: aquantia: remove downshift warning now that phylib takes
    care

 drivers/net/phy/aquantia_main.c | 25 +------------------------
 drivers/net/phy/marvell.c       | 24 ------------------------
 drivers/net/phy/phy-core.c      | 33 +++++++++++++++++++++++++++++++++
 drivers/net/phy/phy.c           |  1 +
 include/linux/phy.h             |  1 +
 5 files changed, 36 insertions(+), 48 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2020-03-20  8:07 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-18 21:27 [PATCH net-next 0/3] net: phy: add and use phy_check_downshift Heiner Kallweit
2020-03-18 21:29 ` [PATCH net-next 1/3] " Heiner Kallweit
2020-03-18 23:21   ` Russell King - ARM Linux admin
2020-03-19  7:30     ` Heiner Kallweit
2020-03-19 11:25       ` Russell King - ARM Linux admin
2020-03-19 13:04         ` Andrew Lunn
2020-03-19 13:58           ` Russell King - ARM Linux admin
2020-03-19 16:36             ` Heiner Kallweit
2020-03-19 16:55               ` Florian Fainelli
2020-03-19 17:04                 ` Heiner Kallweit
2020-03-19 17:08               ` Russell King - ARM Linux admin
2020-03-20  8:07                 ` Heiner Kallweit
2020-03-19  9:06     ` Andrew Lunn
2020-03-19  9:10   ` Andrew Lunn
2020-03-18 21:29 ` [PATCH net-next 2/3] net: phy: marvell: remove downshift warning now that phylib takes care Heiner Kallweit
2020-03-18 21:31 ` [PATCH net-next 3/3] net: phy: aquantia: " Heiner Kallweit

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).