aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib
diff options
context:
space:
mode:
authorFlorian Fainelli <[email protected]>2018-09-25 11:28:46 -0700
committerDavid S. Miller <[email protected]>2018-09-25 20:26:45 -0700
commitd6ab93364734bd88a1011432faa9253680f7e9da (patch)
treed4212b6bc158f001a595aecc3f3018ccb62829cb /tools/perf/scripts/python/Perf-Trace-Util/lib
parent6e2d85ec05591b739059f65fe8438c9c5999f7d8 (diff)
net: phy: marvell: Avoid unnecessary soft reset
The BMCR.RESET bit on the Marvell PHYs has a special meaning in that it commits the register writes into the HW for it to latch and be configured appropriately. Doing software resets causes link drops, and this is unnecessary disruption if nothing changed. Determine from marvell_set_polarity()'s return code whether the register value was changed and if it was, propagate that to the logic that hits the software reset bit. This avoids doing unnecessary soft reset if the PHY is configured in the same state it was previously, this also eliminates the need for a m88e1111_config_aneg() function since it now is the same as marvell_config_aneg(). Tested-by: Wang, Dongsheng <[email protected]> Tested-by: Chris Healy <[email protected]> Tested-by: Andrew Lunn <[email protected]> Tested-by: Clemens Gruber <[email protected]> Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions