PCI: qcom: Enable async probe by default
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 20 Mar 2023 06:46:44 +0000 (12:16 +0530)
committerLorenzo Pieralisi <lpieralisi@kernel.org>
Wed, 12 Apr 2023 06:49:04 +0000 (08:49 +0200)
Qcom PCIe RC driver waits for the PHY link to be up during the probe;
this consumes several milliseconds during boot.

Enable async probe by default so that other drivers can load in parallel
while this driver waits for the link to be up.

Suggested-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230320064644.5217-1-manivannan.sadhasivam@linaro.org
Tested-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
drivers/pci/controller/dwc/pcie-qcom.c

index 10b00fa2c6d1ed33c2e6628f5cb82db8c1e12eb5..9791af8b09f392541a6efbbe5a71ff4a37454a6d 100644 (file)
@@ -1642,6 +1642,7 @@ static struct platform_driver qcom_pcie_driver = {
                .suppress_bind_attrs = true,
                .of_match_table = qcom_pcie_match,
                .pm = &qcom_pcie_pm_ops,
+               .probe_type = PROBE_PREFER_ASYNCHRONOUS,
        },
 };
 builtin_platform_driver(qcom_pcie_driver);