netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC] phylib EEE updates
@ 2017-03-24 11:14 Russell King - ARM Linux
  2017-03-24 11:14 ` [PATCH RFC 1/3] net: phy: avoid setting unsupported EEE advertisments Russell King
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Russell King - ARM Linux @ 2017-03-24 11:14 UTC (permalink / raw)
  To: Florian Fainelli; +Cc: David S. Miller, netdev

Florian,

This series of patches depends on the previous set of changes, and is
therefore net-next material.

While testing the EEE code, I discovered a number of issues:

1. It is possible to enable advertisment of EEE modes which are not
   supported by the hardware.  We omit to check the supported modes
   and mask off those modes that are not supported before writing the
   EEE advertisment register.

2. We need to restart autonegotiation after a change of the EEE
   advertisment, otherwise the link partner does not see the updated
   EEE modes.

3. SGMII connected PHYs are also capable of supporting EEE.

I'm not too sure why we have the test in phylib for the interface mode,
as the list of interface modes that support EEE is likely to increase
(eg, 10G interface modes have provision to support EEE mode.)  I did
think about killing the test, but the older interface modes probably
don't support it.  Any thoughts on what to do about that - maybe the
test should be reversed to exclude those modes which definitely don't
support EEE?

 drivers/net/phy/phy.c | 29 ++++++++++++++++++++++++++---
 1 file changed, 26 insertions(+), 3 deletions(-)
   
-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.

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

end of thread, other threads:[~2017-03-26 23:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-24 11:14 [PATCH RFC] phylib EEE updates Russell King - ARM Linux
2017-03-24 11:14 ` [PATCH RFC 1/3] net: phy: avoid setting unsupported EEE advertisments Russell King
2017-03-24 11:14 ` [PATCH RFC 2/3] net: phy: restart phy autonegotiation after EEE advertisment change Russell King
2017-03-24 11:14 ` [PATCH RFC 3/3] net: phy: allow EEE with SGMII interface modes Russell King
2017-03-26 23:07 ` [PATCH RFC] phylib EEE updates Russell King - ARM Linux

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