Commit 3e516122 authored by Mathias Nyman's avatar Mathias Nyman Committed by Neill Kapron
Browse files

BACKPORT: xhci: add helper to stop endpoint and wait for completion



Expose xhci_stop_endpoint_sync() which is a synchronous variant of
xhci_queue_stop_endpoint().  This is useful for client drivers that are
using the secondary interrupters, and need to stop the current endpoint
session.

This does not go through the normal xhci_handle_cmd_stop_ep() command
completion handler, because it utilizes the completion path to achieve
synchronous behavior.  Users of this API are primarily intended to be
clients that maintain their own transfer rings, such as in the case of USB
audio offload.

Signed-off-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: default avatarWesley Cheng <quic_wcheng@quicinc.com>
Link: https://lore.kernel.org/r/20241015212915.1206789-3-quic_wcheng@quicinc.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 392112015
(cherry picked from commit 07b887f8
 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

 master)
[wcheng - fixed some minor function declaration mismatches]
Change-Id: Ife05fdc8dde66469d73fd4df492ba672dbb4d530
Signed-off-by: default avatarWesley Cheng <quic_wcheng@quicinc.com>
parent aa1615ad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment