netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/7] net: phy: patch series aiming to improve few aspects of phylib
@ 2018-03-14 20:10 Heiner Kallweit
  2018-03-14 20:16 ` [PATCH RFC 1/7] net: phy: unconditionally resume and re-enable interrupts, in phy_start Heiner Kallweit
                   ` (8 more replies)
  0 siblings, 9 replies; 15+ messages in thread
From: Heiner Kallweit @ 2018-03-14 20:10 UTC (permalink / raw)
  To: Florian Fainelli, Andrew Lunn; +Cc: Geert Uytterhoeven, netdev@vger.kernel.org

This patch series aims to tackle few issues with phylib:
 
- address issues with patch series [1] (smsc911x + phylib changes)
- make phy_stop synchronous
- get rid of phy_start/stop_machine and handle it in phy_start/phy_stop
- in mdio_suspend consider runtime pm state of mdio bus parent
- consider more WOL conditions when deciding whether PHY is allowed to
  suspend
- only resume phy after system suspend if needed

[1] https://www.mail-archive.com/netdev@vger.kernel.org/msg196061.html

It works fine here but other NIC drivers may use phylib differently. 
Therefore I'd appreciate feedback and more testing.

I could think of some subsequent patches, e.g. phy_error() could be
reduced to calling phy_stop() and printing an error message
(today it silently sets the PHY state to PHY_HALTED).

Heiner Kallweit (7):
  net: phy: unconditionally resume and re-enable interrupts in phy_start
  net: phy: improve checking for when PHY is allowed to suspend
  net: phy: resume PHY only if needed in mdio_bus_phy_suspend
  net: phy: remove phy_start_machine
  net: phy: make phy_stop synchronous
  net: phy: use new function phy_stop_suspending in mdio_bus_phy_suspend
  net: phy: remove phy_stop_machine

 drivers/net/phy/phy.c        | 102 +++++++++++++++++--------------------------
 drivers/net/phy/phy_device.c |  80 ++++++++++++++++++++-------------
 drivers/net/phy/phylink.c    |   1 -
 include/linux/phy.h          |  14 ++++--
 4 files changed, 100 insertions(+), 97 deletions(-)

-- 
2.16.2

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

end of thread, other threads:[~2018-03-15 21:34 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-14 20:10 [PATCH RFC 0/7] net: phy: patch series aiming to improve few aspects of phylib Heiner Kallweit
2018-03-14 20:16 ` [PATCH RFC 1/7] net: phy: unconditionally resume and re-enable interrupts, in phy_start Heiner Kallweit
2018-03-14 20:16 ` [PATCH RFC 2/7] net: phy: improve checking for when PHY is allowed to, suspend Heiner Kallweit
2018-03-14 20:16 ` [PATCH RFC 3/7] net: phy: resume PHY only if needed in, mdio_bus_phy_suspend Heiner Kallweit
2018-03-14 23:50   ` Florian Fainelli
2018-03-15 21:25     ` Heiner Kallweit
2018-03-14 20:16 ` [PATCH RFC 4/7] net: phy: remove phy_start_machine Heiner Kallweit
2018-03-14 20:16 ` [PATCH RFC 5/7] net: phy: make phy_stop synchronous Heiner Kallweit
2018-03-15  0:00   ` Florian Fainelli
2018-03-14 20:16 ` [PATCH RFC 6/7] net: phy: use new function phy_stop_suspending in, mdio_bus_phy_suspend Heiner Kallweit
2018-03-14 20:16 ` [PATCH RFC 7/7] net: phy: remove phy_stop_machine Heiner Kallweit
2018-03-14 23:53 ` [PATCH RFC 0/7] net: phy: patch series aiming to improve few aspects of phylib Florian Fainelli
2018-03-15 21:08   ` Heiner Kallweit
2018-03-15 10:07 ` Geert Uytterhoeven
2018-03-15 21:34   ` 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).