net: phy: allow PHY drivers to implement their own software reset
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 17 Feb 2014 21:34:03 +0000 (13:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2014 21:40:09 +0000 (16:40 -0500)
commit9df81dd7583d14862d0cfb673a941b261f3b2112
treea790b50329b80f6a6b29f745fd2baad8b4d1944f
parent797ac07137d9ae8572008e21e6123a9ae17dae50
net: phy: allow PHY drivers to implement their own software reset

As pointed out by Shaohui, most 10G PHYs out there have a non-standard
compliant software reset sequence, eventually something much more
complex than just toggling the BMCR_RESET bit. Allow PHY driver to
implement their own soft_reset() callback to deal with that. If no
callback is provided, call into genphy_soft_reset() which makes sure the
existing behavior is kept intact.

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