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

Commit 179c8307 authored by Bar Weiner's avatar Bar Weiner
Browse files

usb: dwc3-msm: Update DBM event buffer upon ep queue



DBM event buffer is cleared when the last DBM related
transfer is terminated.
In order to support connect/disconnect and suspend/resume
scenarios, which include starting and stopping of
DBM transfers, it is required to update DBM event
buffer.

Change-Id: If7eca79c779b9fc1fbff6287261c3a3a1476c115
Signed-off-by: default avatarBar Weiner <bweiner@codeaurora.org>
parent 01f3b4c6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -662,6 +662,11 @@ static int dwc3_msm_ep_queue(struct usb_ep *ep,
	dev_vdbg(dwc->dev, "%s: queing request %p to ep %s length %d\n",
			__func__, request, ep->name, request->length);

	dbm_event_buffer_config(mdwc->dbm,
		dwc3_msm_read_reg(mdwc->base, DWC3_GEVNTADRLO(0)),
		dwc3_msm_read_reg(mdwc->base, DWC3_GEVNTADRHI(0)),
		dwc3_msm_read_reg(mdwc->base, DWC3_GEVNTSIZ(0)));

	/*
	 * We must obtain the lock of the dwc3 core driver,
	 * including disabling interrupts, so we will be sure