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

Commit 2b8edee7 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: core: Enable xhci irq after starting controller"

parents 6b4c1c37 01d940ff
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -119,7 +119,13 @@ int xhci_start(struct xhci_hcd *xhci)
{
	u32 temp;
	int ret;
	struct usb_hcd *hcd = xhci_to_hcd(xhci);

	/*
	 * disable irq to avoid xhci_irq flooding due to unhandeled port
	 * change event in halt state, as soon as xhci_start clears halt bit
	 */
	disable_irq(hcd->irq);
	temp = readl(&xhci->op_regs->command);
	temp |= (CMD_RUN);
	xhci_dbg_trace(xhci, trace_xhci_dbg_init, "// Turn on HC, cmd = 0x%x.",
@@ -140,6 +146,8 @@ int xhci_start(struct xhci_hcd *xhci)
		/* clear state flags. Including dying, halted or removing */
		xhci->xhc_state = 0;

	enable_irq(hcd->irq);

	return ret;
}