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

Commit d4be9fe6 authored by Karthick Shanmugham's avatar Karthick Shanmugham Committed by Gerrit - the friendly Code Review server
Browse files

msm: ep-pcie: ipq: Enable global irq before link enum



Enabling global irq after link enumeration causes link
failure with IPQ host. Global irq is enabled before
enumeration for ipq host alone.

Change-Id: I20fa69c05bd3bc97fddea35e9e30833bca04c54b
Signed-off-by: default avatarKarthick Shanmugham <kartshan@codeaurora.org>
parent 58992ee3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2610,6 +2610,7 @@ int32_t ep_pcie_irq_init(struct ep_pcie_dev_t *dev)
	INIT_WORK(&dev->handle_d3cold_work, handle_d3cold_func);

	if (dev->aggregated_irq) {
		if (!ep_pcie_dev.perst_enum)
			irq_set_status_flags(dev->irq[EP_PCIE_INT_GLOBAL].num, IRQ_NOAUTOEN);
		ret = devm_request_irq(pdev,
			dev->irq[EP_PCIE_INT_GLOBAL].num,
@@ -3455,6 +3456,7 @@ static int ep_pcie_probe(struct platform_device *pdev)

	qcom_edma_init(&pdev->dev);

	if (!ep_pcie_dev.perst_enum)
		enable_irq(ep_pcie_dev.irq[EP_PCIE_INT_GLOBAL].num);
	return 0;