net: phy: dp83867: Check if the phy is in an internal testing mode
authorWadim Egorov <w.egorov@phytec.de>
Thu, 23 Mar 2017 14:31:26 +0000 (15:31 +0100)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 31 May 2017 03:07:53 +0000 (11:07 +0800)
commitecbbee22cfffc9f8d2445202ff8178728c975264
tree1a9d41f88bcfdf267ef9271cb75ee26bf9ed1698
parentc3e3a7aaa9e161f584496830d29adad49652d8dc
net: phy: dp83867: Check if the phy is in an internal testing mode

The DP83867 seems to be always in an internal mode on our Board.
This mode can cause connection problems. We disable this mode.

Unfortunately, Register 0x31 Bit 7 is not documented and marked as reserved.
If Bit 7 is set, phy is in the internal testing mode.

Change-Id: I5d3435fcfea0e1af7c4d5ee510c249f41211f223
Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
drivers/net/phy/dp83867.c