Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ceb4414 authored by Ivaylo Georgiev's avatar Ivaylo Georgiev
Browse files

Revert "usb: dwc3: gadget: introduce cancelled_list"



This reverts commit bba5f987.

This is a preparation change for merging android-4.19.57 into
msm-4.19 branch.

Reverted due to BootTimeRunner regression.

Change-Id: I07e4cfa0f995459e1b89d20b64b5f0075ced1b64
Signed-off-by: default avatarIvaylo Georgiev <irgeorgiev@codeaurora.org>
parent b3885016
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -636,7 +636,6 @@ struct dwc3_event_buffer {
/**
 * struct dwc3_ep - device side endpoint representation
 * @endpoint: usb endpoint
 * @cancelled_list: list of cancelled requests for this endpoint
 * @pending_list: list of pending requests for this endpoint
 * @started_list: list of started requests on this endpoint
 * @wait_end_transfer: wait_queue_head_t for waiting on End Transfer complete
@@ -660,7 +659,6 @@ struct dwc3_event_buffer {
 */
struct dwc3_ep {
	struct usb_ep		endpoint;
	struct list_head	cancelled_list;
	struct list_head	pending_list;
	struct list_head	started_list;

+0 −1
Original line number Diff line number Diff line
@@ -2144,7 +2144,6 @@ static int dwc3_gadget_init_endpoint(struct dwc3 *dwc, u8 epnum)

	INIT_LIST_HEAD(&dep->pending_list);
	INIT_LIST_HEAD(&dep->started_list);
	INIT_LIST_HEAD(&dep->cancelled_list);

	return 0;
}
+0 −15
Original line number Diff line number Diff line
@@ -79,21 +79,6 @@ 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);