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

Commit ba3a1a91 authored by Cristian Birsan's avatar Cristian Birsan Committed by Felipe Balbi
Browse files

usb: gadget: udc: atmel: Fix interrupt storm in FIFO mode.



Fix interrupt storm generated by endpoints when working in FIFO mode.
The TX_COMPLETE interrupt is used only by control endpoints processing.
Do not enable it for other types of endpoints.

Fixes: 914a3f3b ("USB: add atmel_usba_udc driver")
Signed-off-by: default avatarCristian Birsan <cristian.birsan@microchip.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent e92f30ac
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -449,8 +449,10 @@ static void submit_request(struct usba_ep *ep, struct usba_request *req)
		next_fifo_transaction(ep, req);
		if (req->last_transaction) {
			usba_ep_writel(ep, CTL_DIS, USBA_TX_PK_RDY);
			if (ep_is_control(ep))
				usba_ep_writel(ep, CTL_ENB, USBA_TX_COMPLETE);
		} else {
			if (ep_is_control(ep))
				usba_ep_writel(ep, CTL_DIS, USBA_TX_COMPLETE);
			usba_ep_writel(ep, CTL_ENB, USBA_TX_PK_RDY);
		}