Skip to content

Commit 36971d6

Browse files
Krishna chaitanya chundrubjorn-helgaas
authored andcommitted
PCI: qcom: Don't wait for link if we can detect Link Up
If we have a 'global' IRQ for Link Up events, we need not wait for the link to be up during PCI initialization, which reduces startup time. Check for 'global' IRQ, and if present, set 'use_linkup_irq', so dw_pcie_host_init() doesn't wait for the link to come up. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krishna chaitanya chundru <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]> [bhelgaas: commit log] Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Reviewed-by: Niklas Cassel <[email protected]>
1 parent 8d3bf19 commit 36971d6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/pci/controller/dwc/pcie-qcom.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1703,6 +1703,10 @@ static int qcom_pcie_probe(struct platform_device *pdev)
17031703

17041704
platform_set_drvdata(pdev, pcie);
17051705

1706+
irq = platform_get_irq_byname_optional(pdev, "global");
1707+
if (irq > 0)
1708+
pp->use_linkup_irq = true;
1709+
17061710
ret = dw_pcie_host_init(pp);
17071711
if (ret) {
17081712
dev_err(dev, "cannot initialize host\n");
@@ -1716,7 +1720,6 @@ static int qcom_pcie_probe(struct platform_device *pdev)
17161720
goto err_host_deinit;
17171721
}
17181722

1719-
irq = platform_get_irq_byname_optional(pdev, "global");
17201723
if (irq > 0) {
17211724
ret = devm_request_threaded_irq(&pdev->dev, irq, NULL,
17221725
qcom_pcie_global_irq_thread,

0 commit comments

Comments
 (0)