Commit 1912cbc6 authored by Felipe Balbi's avatar Felipe Balbi

usb: dwc3: gadget: start removing BUSY flag

By now, it has the same semantics as DWC3_EP_TRANSFER_STARTED, but
that has a much more descriptive name.
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent ee3638b8
...@@ -1221,7 +1221,7 @@ static int __dwc3_gadget_kick_transfer(struct dwc3_ep *dep) ...@@ -1221,7 +1221,7 @@ static int __dwc3_gadget_kick_transfer(struct dwc3_ep *dep)
if (!dwc3_calc_trbs_left(dep)) if (!dwc3_calc_trbs_left(dep))
return 0; return 0;
starting = !(dep->flags & DWC3_EP_BUSY); starting = !(dep->flags & DWC3_EP_TRANSFER_STARTED);
dwc3_prepare_trbs(dep); dwc3_prepare_trbs(dep);
req = next_request(&dep->started_list); req = next_request(&dep->started_list);
...@@ -1337,7 +1337,7 @@ static int __dwc3_gadget_ep_queue(struct dwc3_ep *dep, struct dwc3_request *req) ...@@ -1337,7 +1337,7 @@ static int __dwc3_gadget_ep_queue(struct dwc3_ep *dep, struct dwc3_request *req)
return 0; return 0;
} }
if ((dep->flags & DWC3_EP_BUSY) && if ((dep->flags & DWC3_EP_TRANSFER_STARTED) &&
!(dep->flags & DWC3_EP_MISSED_ISOC)) !(dep->flags & DWC3_EP_MISSED_ISOC))
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment