mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
UPSTREAM: usb: dwc2: gadget: Do not halt isochronous endpoints
Add a check in dwc2_hsotg_ep_sethalt() so that it does not halt
isochronous endpoints.
Change-Id: I72d5cf2ba7fb6cfa8ab8e33d16c4e3b33ce31e4f
Signed-off-by: Vahram Aharonyan <vahrama@synopsys.com>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit 15186f1011)
This commit is contained in:
committed by
Huang, Tao
parent
5ce894611b
commit
4e33319307
@@ -2974,6 +2974,11 @@ static int dwc2_hsotg_ep_sethalt(struct usb_ep *ep, int value, bool now)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (hs_ep->isochronous) {
|
||||
dev_err(hs->dev, "%s is Isochronous Endpoint\n", ep->name);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (!now && value && !list_empty(&hs_ep->queue)) {
|
||||
dev_dbg(hs->dev, "%s request is pending, cannot halt\n",
|
||||
ep->name);
|
||||
|
||||
Reference in New Issue
Block a user