diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-07-28 21:58:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-01 03:27:10 +0300 |
commit | 7ad813f208533cebfcc32d3d7474dc1677d1b09a (patch) | |
tree | 6f5ac7c52ed7b4e8f7870b5141946d51a90708db /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 96a734bae00f4ea46d0f3f3a8e347c31d24489bd (diff) | |
download | linux-7ad813f208533cebfcc32d3d7474dc1677d1b09a.tar.xz |
net: phy: Correctly process PHY_HALTED in phy_stop_machine()
Marc reported that he was not getting the PHY library adjust_link()
callback function to run when calling phy_stop() + phy_disconnect()
which does not indeed happen because we set the state machine to
PHY_HALTED but we don't get to run it to process this state past that
point.
Fix this with a synchronous call to phy_state_machine() in order to have
the state machine actually act on PHY_HALTED, set the PHY device's link
down, turn the network device's carrier off and finally call the
adjust_link() function.
Reported-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
Fixes: a390d1f379cf ("phylib: convert state_queue work to delayed_work")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions