diff options
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 283c0cb2f40c..920d99716e4f 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c | |||
@@ -1092,15 +1092,10 @@ static int __dwc3_gadget_ep_queue(struct dwc3_ep *dep, struct dwc3_request *req) | |||
1092 | * | 1092 | * |
1093 | */ | 1093 | */ |
1094 | if (dep->flags & DWC3_EP_PENDING_REQUEST) { | 1094 | if (dep->flags & DWC3_EP_PENDING_REQUEST) { |
1095 | int ret; | ||
1096 | |||
1097 | ret = __dwc3_gadget_kick_transfer(dep, 0, true); | 1095 | ret = __dwc3_gadget_kick_transfer(dep, 0, true); |
1098 | if (ret && ret != -EBUSY) { | 1096 | if (ret && ret != -EBUSY) |
1099 | struct dwc3 *dwc = dep->dwc; | ||
1100 | |||
1101 | dev_dbg(dwc->dev, "%s: failed to kick transfers\n", | 1097 | dev_dbg(dwc->dev, "%s: failed to kick transfers\n", |
1102 | dep->name); | 1098 | dep->name); |
1103 | } | ||
1104 | } | 1099 | } |
1105 | 1100 | ||
1106 | /* | 1101 | /* |
@@ -1113,12 +1108,9 @@ static int __dwc3_gadget_ep_queue(struct dwc3_ep *dep, struct dwc3_request *req) | |||
1113 | WARN_ON_ONCE(!dep->resource_index); | 1108 | WARN_ON_ONCE(!dep->resource_index); |
1114 | ret = __dwc3_gadget_kick_transfer(dep, dep->resource_index, | 1109 | ret = __dwc3_gadget_kick_transfer(dep, dep->resource_index, |
1115 | false); | 1110 | false); |
1116 | if (ret && ret != -EBUSY) { | 1111 | if (ret && ret != -EBUSY) |
1117 | struct dwc3 *dwc = dep->dwc; | ||
1118 | |||
1119 | dev_dbg(dwc->dev, "%s: failed to kick transfers\n", | 1112 | dev_dbg(dwc->dev, "%s: failed to kick transfers\n", |
1120 | dep->name); | 1113 | dep->name); |
1121 | } | ||
1122 | } | 1114 | } |
1123 | 1115 | ||
1124 | /* | 1116 | /* |
@@ -1755,7 +1747,7 @@ static void dwc3_endpoint_transfer_complete(struct dwc3 *dwc, | |||
1755 | int i; | 1747 | int i; |
1756 | 1748 | ||
1757 | for (i = 0; i < DWC3_ENDPOINTS_NUM; i++) { | 1749 | for (i = 0; i < DWC3_ENDPOINTS_NUM; i++) { |
1758 | struct dwc3_ep *dep = dwc->eps[i]; | 1750 | dep = dwc->eps[i]; |
1759 | 1751 | ||
1760 | if (!(dep->flags & DWC3_EP_ENABLED)) | 1752 | if (!(dep->flags & DWC3_EP_ENABLED)) |
1761 | continue; | 1753 | continue; |