Commit 5647b127 authored by Florian Fainelli's avatar Florian Fainelli Committed by Dan Murphy
Browse files

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: default avatarShaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
(cherry picked from commit 9df81dd7)
Signed-off-by: default avatarDan Murphy <dmurphy@ti.com>
parent 4ced3a93
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment