diff options
author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2021-01-29 15:00:44 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-29 14:16:52 +0100 |
commit | 3c648d3deb0f95c360c9b91f49c0f313db0cef31 (patch) | |
tree | 97c30ae299f573b556743ce873f086dcf40f9e0f /drivers/ide/ide-pm.c | |
parent | 51ee4a84300200c51303ef15b84981b2edb6ec47 (diff) |
xhci: handle halting transfer event properly after endpoint stop and halt raced.
If we receive a transfer event indicating that an endpoint should be
halted, but current endpoint state doesn't match it, then the halt might
be just resolved by the stop endpoint completion handler that detects the
halted endpoint due to a context state error.
In this case the TD we halted on is already moved to the cancelled TD list,
and should not be successfully completed and given back anymore.
Let the stop endpoint completion handler reset the endpoint, and then let
the reset endpoint handler give back the cancelled TD among all other
ones on the cancelled TD list
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20210129130044.206855-28-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/ide/ide-pm.c')
0 files changed, 0 insertions, 0 deletions