Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'usb-5.14-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb

Pull USB fix from Greg KH:
"A single revert of a commit that caused problems in 5.14-rc5 for
5.14-rc6. It has been in linux-next almost all week, and has resolved
the issues that were reported on lots of different systems that were
not the platform that the change was originally tested on (gotta love
SoC cores used in multiple devices from multiple vendors...)"

* tag 'usb-5.14-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
Revert "usb: dwc3: gadget: Use list_replace_init() before traversing lists"

+2 -16
+2 -16
drivers/usb/dwc3/gadget.c
··· 1741 1741 { 1742 1742 struct dwc3_request *req; 1743 1743 struct dwc3_request *tmp; 1744 - struct list_head local; 1745 1744 struct dwc3 *dwc = dep->dwc; 1746 1745 1747 - restart: 1748 - list_replace_init(&dep->cancelled_list, &local); 1749 - 1750 - list_for_each_entry_safe(req, tmp, &local, list) { 1746 + list_for_each_entry_safe(req, tmp, &dep->cancelled_list, list) { 1751 1747 dwc3_gadget_ep_skip_trbs(dep, req); 1752 1748 switch (req->status) { 1753 1749 case DWC3_REQUEST_STATUS_DISCONNECTED: ··· 1761 1765 break; 1762 1766 } 1763 1767 } 1764 - 1765 - if (!list_empty(&dep->cancelled_list)) 1766 - goto restart; 1767 1768 } 1768 1769 1769 1770 static int dwc3_gadget_ep_dequeue(struct usb_ep *ep, ··· 2969 2976 { 2970 2977 struct dwc3_request *req; 2971 2978 struct dwc3_request *tmp; 2972 - struct list_head local; 2973 2979 2974 - restart: 2975 - list_replace_init(&dep->started_list, &local); 2976 - 2977 - list_for_each_entry_safe(req, tmp, &local, list) { 2980 + list_for_each_entry_safe(req, tmp, &dep->started_list, list) { 2978 2981 int ret; 2979 2982 2980 2983 ret = dwc3_gadget_ep_cleanup_completed_request(dep, event, ··· 2978 2989 if (ret) 2979 2990 break; 2980 2991 } 2981 - 2982 - if (!list_empty(&dep->started_list)) 2983 - goto restart; 2984 2992 } 2985 2993 2986 2994 static bool dwc3_gadget_ep_should_continue(struct dwc3_ep *dep)