diff options
| author | Udipto Goswami <[email protected]> | 2023-10-19 13:29:22 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-10-21 12:38:54 +0200 |
| commit | 6ccb83d6c4972ebe6ae49de5eba051de3638362c (patch) | |
| tree | 0c445a42f1c128a11fde186eb29f7cf9592f9825 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | 47f503cf5f799ec02e5f4b7c3b9afe145eca2aef (diff) | |
usb: xhci: Implement xhci_handshake_check_state() helper
In some situations where xhci removal happens parallel to xhci_handshake,
we encounter a scenario where the xhci_handshake can't succeed, and it
polls until timeout.
If xhci_handshake runs until timeout it can on some platforms result in
a long wait which might lead to a watchdog timeout.
Add a helper that checks xhci status during the handshake, and exits if
set state is entered. Use this helper in places where xhci_handshake is
called unlocked and has a long timeout. For example xhci command timeout
and xhci reset.
[commit message and code comment rewording -Mathias]
Signed-off-by: Udipto Goswami <[email protected]>
Signed-off-by: Mathias Nyman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions