]> asedeno.scripts.mit.edu Git - linux.git/commit
net: phy: Do not check Link status when loopback is enabled
authorJose Abreu <Jose.Abreu@synopsys.com>
Thu, 5 Sep 2019 11:43:10 +0000 (13:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Sep 2019 13:11:21 +0000 (15:11 +0200)
commitfe4a7a41767a14dbb148e41b0659be38a696fe07
tree66ef2e1f885eb399579451753411d11b94c29837
parentd1967e495a8d1dd6b8ff2df9d3e045c5d60a37a6
net: phy: Do not check Link status when loopback is enabled

While running stmmac selftests I found that in my 1G setup some tests
were failling when running with PHY loopback enabled.

It looks like when loopback is enabled the PHY will report that Link is
down even though there is a valid connection.

As in loopback mode the data will not be sent anywhere we can bypass the
logic of checking if Link is valid thus saving unecessary reads.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c