Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CA1EC76196 for ; Mon, 20 Mar 2023 06:47:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229997AbjCTGq6 (ORCPT ); Mon, 20 Mar 2023 02:46:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229983AbjCTGqy (ORCPT ); Mon, 20 Mar 2023 02:46:54 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CBA4A5E3 for ; Sun, 19 Mar 2023 23:46:53 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id k2so11405838pll.8 for ; Sun, 19 Mar 2023 23:46:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679294812; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=VaxDrE6sBelofBs54+Z3CMb25A0XT3Une6FS0Y2mEhs=; b=wi1+mN7GaJ4u0+hEKsy2oofsDrcs6R+8hM3lxZTB/rB1m0ZSCgQNTvHwNpL0xU9xfi EaCqhXmw5isP6bSykPi5nvg/EzBDaZ9JpjJGnVC0RR1oAhyH48CrC4MHsnEfq6a6nT7R OW3wNgX/H7dKYHNbIV7DKn90XtRCqYPj0kRaE+r7giVBYfywylF/VPqa3TQ0IdjV7IbJ PRJeEai8K8rBpwEUgvp1vsjrxSRCrqzsoJD4NIidOmBROS0H8HOtRcQhCLTFZ3iMuZtm 9NdTo9cEc17eueWVv876JiJLgFRxnVVRVCEp72dugpnDwfdLIkuugLujXF+4ndBfGyAm TMJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679294812; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VaxDrE6sBelofBs54+Z3CMb25A0XT3Une6FS0Y2mEhs=; b=kBlVP5NheixlxfVSxWDbmuqMMGE+jbTdh6o3FyjrhkFPVLDwHGVs9d2sIVIOb7BbjK Dp9vzOJjUW6TtbF/lIvylTZtiSCaWNiwmd6992ZA6LGSp1D/5aWoI9VOUclPNVLLMXcW Ip7qW3IIqFdZmynR8Jey7bb1rkkodgfLMjR6RpekZaSGWXn3X0EZ/QBzpKecrrpW/33F 5/KVmi1Ait0GCeTFe6kjfrmiASL+jF6qQ40zICBFVkxc0t7eLQ2k9P7zPpOzz+51/k8D p8KrSfVDrCRv7XDCNcZeUSWSkHCRYq6bmnGWOv9nr8V78pqnOqMOORHu/yzY3u2QyC+L PAtA== X-Gm-Message-State: AO0yUKUunDFD7M5Vv+cwJOV3aQtvH28gwIqKuNPgzXD5AVqBK2m1qy8X HtBBLQbNiHETdId+gQ762/+g X-Google-Smtp-Source: AK7set+3SI3wk2EsbMEEQTr9wQv3GdLpwqjTZWBEPt2as3AtF1LSd86q/Bqa+7hWcN4ylIGkqU0tYQ== X-Received: by 2002:a17:902:db07:b0:1a1:d949:a52d with SMTP id m7-20020a170902db0700b001a1d949a52dmr635544plx.65.1679294812417; Sun, 19 Mar 2023 23:46:52 -0700 (PDT) Received: from localhost.localdomain ([59.97.54.141]) by smtp.gmail.com with ESMTPSA id p7-20020a1709028a8700b001a1860da968sm5793382plo.178.2023.03.19.23.46.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Mar 2023 23:46:51 -0700 (PDT) From: Manivannan Sadhasivam To: lpieralisi@kernel.org, kw@linux.com Cc: robh@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, johan+linaro@kernel.org, steev@kali.org, Manivannan Sadhasivam Subject: [PATCH v2] PCI: qcom: Add async probe support Date: Mon, 20 Mar 2023 12:16:44 +0530 Message-Id: <20230320064644.5217-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Qcom PCIe RC driver waits for the PHY link to be up during the probe. This consumes several milliseconds during boot. So add async probe support so that other drivers can load in parallel while this driver waits for the link to be up. Suggested-by: Rob Herring Signed-off-by: Manivannan Sadhasivam --- Changes in v2: * Rebased on top of v6.3-rc1 drivers/pci/controller/dwc/pcie-qcom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c index a232b04af048..4ca357be88e0 100644 --- a/drivers/pci/controller/dwc/pcie-qcom.c +++ b/drivers/pci/controller/dwc/pcie-qcom.c @@ -1862,6 +1862,7 @@ static struct platform_driver qcom_pcie_driver = { .name = "qcom-pcie", .suppress_bind_attrs = true, .of_match_table = qcom_pcie_match, + .probe_type = PROBE_PREFER_ASYNCHRONOUS, }, }; builtin_platform_driver(qcom_pcie_driver); -- 2.25.1