diff options
author | Geert Uytterhoeven <[email protected]> | 2021-01-18 16:08:12 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2021-01-19 16:47:19 -0800 |
commit | f6a2e94b3f9d89cb40771ff746b16b5687650cbb (patch) | |
tree | f233ddc1f5e4d35dd32b69df96c008aeee5bb177 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | a3eb4e9d4c9218476d05c52dfd2be3d6fdce6b91 (diff) |
sh_eth: Fix power down vs. is_opened flag ordering
sh_eth_close() does a synchronous power down of the device before
marking it closed. Revert the order, to make sure the device is never
marked opened while suspended.
While at it, use pm_runtime_put() instead of pm_runtime_put_sync(), as
there is no reason to do a synchronous power down.
Fixes: 7fa2955ff70ce453 ("sh_eth: Fix sleeping function called from invalid context")
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Sergei Shtylyov <[email protected]>
Reviewed-by: Niklas Söderlund <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions