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

Commit 536ab493 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: dwc3: gadget: clear events in top-half handler" into msm-4.9

parents c2edb486 551d2906
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3473,8 +3473,6 @@ static irqreturn_t dwc3_process_event_buf(struct dwc3 *dwc)
		 */
		evt->lpos = (evt->lpos + 4) % DWC3_EVENT_BUFFERS_SIZE;
		left -= 4;

		dwc3_writel(dwc->regs, DWC3_GEVNTCOUNT(0), 4);
	}

	dwc->bh_handled_evt_cnt[dwc->bh_dbg_index] += (evt->count / 4);
@@ -3543,6 +3541,8 @@ static irqreturn_t dwc3_check_event_buf(struct dwc3 *dwc)
	reg |= DWC3_GEVNTSIZ_INTMASK;
	dwc3_writel(dwc->regs, DWC3_GEVNTSIZ(0), reg);

	dwc3_writel(dwc->regs, DWC3_GEVNTCOUNT(0), count);

	return IRQ_WAKE_THREAD;
}