summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc2/params.c
diff options
context:
space:
mode:
authorFaisal Hassan <quic_faisalh@quicinc.com>2024-10-22 21:26:31 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-29 04:23:59 +0100
commit075919f6df5dd82ad0b1894898b315fbb3c29b84 (patch)
treecad1762787a5df9b5bcc7141c9310129bbbdbca7 /drivers/usb/dwc2/params.c
parent31004740e42846a6f0bb255e6348281df3eb8032 (diff)
downloadlinux-075919f6df5dd82ad0b1894898b315fbb3c29b84.tar.gz
linux-075919f6df5dd82ad0b1894898b315fbb3c29b84.tar.bz2
linux-075919f6df5dd82ad0b1894898b315fbb3c29b84.zip
xhci: Fix Link TRB DMA in command ring stopped completion event
During the aborting of a command, the software receives a command completion event for the command ring stopped, with the TRB pointing to the next TRB after the aborted command. If the command we abort is located just before the Link TRB in the command ring, then during the 'command ring stopped' completion event, the xHC gives the Link TRB in the event's cmd DMA, which causes a mismatch in handling command completion event. To address this situation, move the 'command ring stopped' completion event check slightly earlier, since the specific command it stopped on isn't of significant concern. Fixes: 7f84eef0dafb ("USB: xhci: No-op command queueing and irq handler.") Cc: stable@vger.kernel.org Signed-off-by: Faisal Hassan <quic_faisalh@quicinc.com> Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20241022155631.1185-1-quic_faisalh@quicinc.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc2/params.c')
0 files changed, 0 insertions, 0 deletions