Patrick Trantham 4223dbffed net: phy: smsc: Re-enable EDPD mode for LAN87xx
This patch re-enables Energy Detect Power Down (EDPD) mode for the
LAN8710/LAN8720.  EDPD mode was disabled in a previous commit,
(b629820d18fa65cc598390e4b9712fd5f83ee693), because it was causing the
PHY to not be able to detect a link when cold started without a cable
connected.

The LAN8710/LAN8720 requires a minimum of 2 link pulses within 64ms of
each other in order to set the ENERGYON bit and exit EDPD mode.  If a
link partner does send the pulses within this interval, the PHY will
remained powered down.

This workaround will manually toggle the PHY on/off upon calls to
read_status in order to generate link test pulses if the link is down.
If a link partner is present, it will respond to the pulses, which will
cause the ENERGYON bit to be set and will cause the EDPD mode to be
exited.

Signed-off-by: Patrick Trantham <patrick.trantham@fuel7.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-11-15 17:48:50 -05:00
..
2012-07-24 13:54:16 -07:00
2012-08-03 20:32:31 -07:00
2012-09-01 22:44:13 -04:00
2012-11-08 21:59:35 -05:00
2012-11-01 12:38:31 -04:00
2012-11-14 21:48:16 -05:00
2012-11-09 16:28:37 -05:00
2012-10-02 14:37:31 -04:00
2012-10-01 18:39:45 -04:00
2012-10-07 07:13:01 +09:00