summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2018-03-29 11:08:46 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2018-05-21 10:00:52 +0300
commit1912cbc60f44f0ccc5ae8b90243b9ee304d71d39 (patch)
treeea78ffe7b71ba50281d3b56d58c9e6268f87ce77 /drivers/usb/dwc3
parentee3638b897b9b6926d567b0ee0d9e65636138442 (diff)
downloadlinux-stable-1912cbc60f44f0ccc5ae8b90243b9ee304d71d39.tar.gz
linux-stable-1912cbc60f44f0ccc5ae8b90243b9ee304d71d39.tar.bz2
linux-stable-1912cbc60f44f0ccc5ae8b90243b9ee304d71d39.zip
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: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/gadget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 6a2d41250602..643dc71b65c7 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -1221,7 +1221,7 @@ static int __dwc3_gadget_kick_transfer(struct dwc3_ep *dep)
if (!dwc3_calc_trbs_left(dep))
return 0;
- starting = !(dep->flags & DWC3_EP_BUSY);
+ starting = !(dep->flags & DWC3_EP_TRANSFER_STARTED);
dwc3_prepare_trbs(dep);
req = next_request(&dep->started_list);
@@ -1337,7 +1337,7 @@ static int __dwc3_gadget_ep_queue(struct dwc3_ep *dep, struct dwc3_request *req)
return 0;
}
- if ((dep->flags & DWC3_EP_BUSY) &&
+ if ((dep->flags & DWC3_EP_TRANSFER_STARTED) &&
!(dep->flags & DWC3_EP_MISSED_ISOC))
goto out;