summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2019-04-24 21:41:06 +0200
committerDavid S. Miller <davem@davemloft.net>2019-04-26 11:56:54 -0400
commit8c90b795e90f7753d23c18e8b95dd71b4a18c5d9 (patch)
treeef795fb4f37c2ac2639bf8b535b74c2b95ee3e7e /fs
parentf7abc0618a4a5f0e138e24bb31234a88bfdb18ae (diff)
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 'fs')
0 files changed, 0 insertions, 0 deletions