OSDN Git Service

net: phy: dp83869: Add speed optimization feature
authorDan Murphy <dmurphy@ti.com>
Mon, 28 Sep 2020 14:51:35 +0000 (09:51 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Sep 2020 19:44:12 +0000 (12:44 -0700)
commit811ac400ea33711bece7c968ee0b8ba3cd290ed9
treee028aac03bd64c0b6ab27d9c3540930bff5cd1ba
parent49fc23018ec64f4786e65d96a25a90711f35286f
net: phy: dp83869: Add speed optimization feature

Set the speed optimization bit on the DP83869 PHY.

Speed optimization, also known as link downshift, enables fallback to 100M
operation after multiple consecutive failed attempts at Gigabit link
establishment. Such a case could occur if cabling with only four wires
(two twisted pairs) were connected instead of the standard cabling with
eight wires (four twisted pairs).

The number of failed link attempts before falling back to 100M operation is
configurable. By default, four failed link attempts are required before
falling back to 100M.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83869.c