]> git.baikalelectronics.ru Git - kernel.git/commit
net: sh_eth: do not issue a wild PHY reset through BMCR
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 6 Dec 2013 21:01:38 +0000 (13:01 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Dec 2013 01:38:59 +0000 (20:38 -0500)
commit7216282e2ff53885d9724378f39d13948fff6ffc
treebc291d4587494cd5419e672eaeb3e9682239c608
parentda6e79035f0a6de7b4bfbebda32803a99420d779
net: sh_eth: do not issue a wild PHY reset through BMCR

The sh_eth driver issues an uncontrolled PHY reset through the MII
register BMCR but fails to wait for the reset to complete, and will also
implicitely wipe out all possible PHY fixups applied. Use phy_init_hw()
which remedies both problems.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c