]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: move PHY software reset to genphy_soft_reset
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 17 Feb 2014 21:34:02 +0000 (13:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2014 21:40:08 +0000 (16:40 -0500)
commite93ae2aae27d92e6b23d52f7c1b014ad80bcf4fc
treecb4753c7b10f5e950542f34dd6782e65291991c3
parent61698817c0ef69e65d2d66969cf2eb994d0cf2d8
net: phy: move PHY software reset to genphy_soft_reset

As pointed out by Shaohui, this function is generic for 10/100/1000
PHYs, but 10G PHYs might have a slightly different reset sequence which
prevents most of them from using this function.

Move the BMCR_RESET based software resent sequence to
genphy_soft_reset() in preparation for allowing PHY drivers to implement
a soft_reset() callback.

Reported-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c
include/linux/phy.h