]> git.baikalelectronics.ru Git - uboot.git/commit
net: phy: marvell: Fix init function for m88e1145
authorYork Sun <york.sun@nxp.com>
Tue, 6 Jun 2017 16:22:40 +0000 (09:22 -0700)
committerYork Sun <york.sun@nxp.com>
Mon, 12 Jun 2017 19:18:14 +0000 (12:18 -0700)
commita876b53ef7d391252eaf6395a36c90939cf41bf4
treedf13062cd45938595652d2829c497ba1e61e9667
parent3275cfabc9a6ed67eeaf60c1fe4e4891cf8ab8cc
net: phy: marvell: Fix init function for m88e1145

Commit a058052c changed the generic phy_reset() to clear all bits in
BMCR. This inevitably clears the ANEG bit. m88e1145 requires any
change to ANEG bit to be followed by a software reset. This seems to
be different from other PHYs. Implement read-modify-write procedure
for this PHY init.

Signed-off-by: York Sun <york.sun@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/marvell.c