diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-04-24 21:41:06 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-26 17:56:54 +0200 |
commit | 8c90b795e90f7753d23c18e8b95dd71b4a18c5d9 (patch) | |
tree | ef795fb4f37c2ac2639bf8b535b74c2b95ee3e7e /net/tipc | |
parent | usbnet: ipheth: Simplify device detection (diff) | |
download | linux-8c90b795e90f7753d23c18e8b95dd71b4a18c5d9.tar.xz linux-8c90b795e90f7753d23c18e8b95dd71b4a18c5d9.zip |
net: phy: improve genphy_soft_reset
PHY's behave differently when being reset. Some reset registers to
defaults, some don't. Some trigger an autoneg restart, some don't.
So let's also set the autoneg restart bit when resetting. Then PHY
behavior should be more consistent. Clearing BMCR_ISOLATE serves the
same purpose and is borrowed from genphy_restart_aneg.
BMCR holds the speed / duplex settings in fixed mode. Therefore
we may have an issue if a soft reset resets BMCR to its default.
So better call genphy_setup_forced() afterwards in fixed mode.
We've seen no related complaint in the last >10 yrs, so let's
treat it as an improvement.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions