]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: phy: workaround for buggy cable detection by LAN8700 after cable plugging
authorIgor Plyatov <plyatov@gmail.com>
Fri, 14 Aug 2015 17:11:02 +0000 (20:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Aug 2015 21:27:23 +0000 (14:27 -0700)
commit776829de90c5972895db398993ddfa9417ff8b01
tree7a04ac57c817c75c666d866527daa35fb4241176
parenta27cc68b9bb25f16b37f9800e977927a2275e7e6
net: phy: workaround for buggy cable detection by LAN8700 after cable plugging

* Due to HW bug, LAN8700 sometimes does not detect presence of energy in the
  Ethernet cable in Energy Detect Power-Down mode (e.g while EDPWRDOWN bit is
  set, the ENERGYON bit does not asserted sometimes). This is a common bug of
  LAN87xx family of PHY chips.
* The lan87xx_read_status() was improved to acquire ENERGYON bit. Its previous
  algorythm still not reliable on 100 % and sometimes skip cable plugging.

Signed-off-by: Igor Plyatov <plyatov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/smsc.c