|
|
@@ -79,6 +79,21 @@ static inline void dwc3_gadget_move_started_request(struct dwc3_request *req)
|
|
|
list_move_tail(&req->list, &dep->started_list);
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * dwc3_gadget_move_cancelled_request - move @req to the cancelled_list
|
|
|
+ * @req: the request to be moved
|
|
|
+ *
|
|
|
+ * Caller should take care of locking. This function will move @req from its
|
|
|
+ * current list to the endpoint's cancelled_list.
|
|
|
+ */
|
|
|
+static inline void dwc3_gadget_move_cancelled_request(struct dwc3_request *req)
|
|
|
+{
|
|
|
+ struct dwc3_ep *dep = req->dep;
|
|
|
+
|
|
|
+ req->started = false;
|
|
|
+ list_move_tail(&req->list, &dep->cancelled_list);
|
|
|
+}
|
|
|
+
|
|
|
void dwc3_gadget_giveback(struct dwc3_ep *dep, struct dwc3_request *req,
|
|
|
int status);
|
|
|
|