diff options
author | Heiner Kallweit <[email protected]> | 2021-11-03 22:08:28 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2021-11-04 16:46:29 -0700 |
commit | a4db9055fdb9cf607775c66d39796caf6439ec92 (patch) | |
tree | c7624300d8f723dec2ffc1010cf44459b8b989b4 /tools/perf/scripts/python/syscall-counts.py | |
parent | 96d0c9be432dfd4908e96dde7cab860368a348ab (diff) |
net: phy: fix duplex out of sync problem while changing settings
As reported by Zhang there's a small issue if in forced mode the duplex
mode changes with the link staying up [0]. In this case the MAC isn't
notified about the change.
The proposed patch relies on the phylib state machine and ignores the
fact that there are drivers that uses phylib but not the phylib state
machine. So let's don't change the behavior for such drivers and fix
it w/o re-adding state PHY_FORCING for the case that phylib state
machine is used.
[0] https://lore.kernel.org/netdev/[email protected]/T/
Fixes: 2bd229df5e2e ("net: phy: remove state PHY_FORCING")
Reported-by: Zhang Changzhong <[email protected]>
Tested-by: Zhang Changzhong <[email protected]>
Signed-off-by: Heiner Kallweit <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions