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

Commit 672ab146 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

xhci: hsic: Enable xhci irq after xhci memory initialization



Spurious port change interrupt is causing access to xhci
data structures from xhci_irq() which causes memory corruption.
Avoid this by enabling xhci irq right before enabling HSIC phy
drives idle state on to the bus.

CRs-Fixed: 669583
Change-Id: I35bf904859fda7ad41df8e40b86338395adf2099
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 43a3965c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1313,6 +1313,7 @@ static int mxhci_hsic_probe(struct platform_device *pdev)
		}
	}

	irq_set_status_flags(irq, IRQ_NOAUTOEN);
	ret = usb_add_hcd(hcd, irq, IRQF_SHARED);
	if (ret)
		goto pinctrl_sleep;
@@ -1397,6 +1398,7 @@ static int mxhci_hsic_probe(struct platform_device *pdev)
		dev_dbg(&pdev->dev, "%s: unable to create imod sysfs entry\n",
					__func__);

	enable_irq(irq);
	/* Enable HSIC PHY */
	mxhci_hsic_ulpi_write(mxhci, 0x01, MSM_HSIC_CFG_SET);