aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/inetdevice.h
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2013-12-06 13:01:35 -0800
committerDavid S. Miller <davem@davemloft.net>2013-12-09 20:38:59 -0500
commit7cd1463664c2a15721ff4ccfb61d4d970815cb3d (patch)
tree830fb41aa25cf2a85f6067cce2f087ad84ac1f86 /include/linux/inetdevice.h
parentnet: phy: consolidate PHY reset in phy_init_hw() (diff)
downloadwireguard-linux-7cd1463664c2a15721ff4ccfb61d4d970815cb3d.tar.xz
wireguard-linux-7cd1463664c2a15721ff4ccfb61d4d970815cb3d.zip
net: mv643xx_eth: use phy_init_hw to reset PHY
Instead of open-coding a PHY reset through the MII BMCR register, use phy_init_hw() which does that for us and will also make sure that PHY fixups are applied if required. We also remove a call to phy_reset() due to the following sequence of calls in the driver: phy_scan() -> phy_connect() -> phy_connect_direct() -> phy_attach_direct() -> phy_init_hw() and we only have a call to phy_init() after phy_scan(). Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/inetdevice.h')
0 files changed, 0 insertions, 0 deletions