patch "usb: xhci-mtk: break loop when find the endpoint to drop" added to usb-linus
Subsystems (5)
This is a note to let you know that I've just added the patch titled
usb: xhci-mtk: break loop when find the endpoint to drop
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
From a50ea34d6dd00a12c9cd29cf7b0fa72816bffbcb Mon Sep 17 00:00:00 2001
From: Chunfeng Yun <[email protected]>
Date: Tue, 2 Feb 2021 16:38:24 +0800
Subject: usb: xhci-mtk: break loop when find the endpoint to drop
No need to check the following endpoints after finding the endpoint wanted to drop.
--- drivers/usb/host/xhci-mtk-sch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/usb/host/xhci-mtk-sch.c +3 -1
@@ -689,8 +689,10 @@ void xhci_mtk_drop_ep_quirk(struct usb_hcd *hcd, struct usb_device *udev, sch_bw = &sch_array[bw_index];list_for_each_entry_safe (sch_ep, tmp, &sch_bw->bw_ep_list, endpoint) { -if (sch_ep->ep == ep) +if (sch_ep->ep == ep) {destroy_sch_ep (udev, sch_bw, sch_ep); +break ; + } } }EXPORT_SYMBOL_GPL (xhci_mtk_drop_ep_quirk);
Signature · 1 line
2.30.0