From patchwork Fri Feb 24 19:57:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sajid Dalvi X-Patchwork-Id: 13151755 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 D05B3C7EE23 for ; Fri, 24 Feb 2023 19:58:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229452AbjBXT6F (ORCPT ); Fri, 24 Feb 2023 14:58:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229718AbjBXT6C (ORCPT ); Fri, 24 Feb 2023 14:58:02 -0500 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A18360D5E for ; Fri, 24 Feb 2023 11:58:01 -0800 (PST) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-536e8d6d9ceso5363977b3.12 for ; Fri, 24 Feb 2023 11:58:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1677268680; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=p3M/U/RdbIKj9BRgWDZd3ub2xYwsuU8WGv3/rWkYSus=; b=eV22FgQY4o1TSX4cv+YeD6o76tNMkWk142BEeFVgpk4xF9u+7stqQA3Sl9FCfsQKee PwcyeHd4nbwK8yt2juTWJPeXWO1UQM5vrI85Ze8J/m11gIiGW1q4f0O+CYBbyMJm/kRV eyfo6/nu6IBGt9n2SQdIhuZik4w++NofHsebKLN/5MtNpusK2O77g82R1uvfnVcs6rTO X3vuq9gdXxOIynyuVLrFALUvBW7PjyG2rbQiyxAEjH2CNSd+Tbj5gok30D6J3SJOWjdT MKtbGoK/M7hkxlwO6SqpSsmgcR1aPwvMak0Oc1mXK5qyQLTj5nm7MXZD7FuJuPjwogwb /GXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677268680; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=p3M/U/RdbIKj9BRgWDZd3ub2xYwsuU8WGv3/rWkYSus=; b=Gax+uqOBHALRQngysrOio1CsUzEE8AmtqTjtSWJZLXD8MwL4OeH2KfiWI2prMNlOIo WyWxmW2Q2Xj/LnUrvplgAEiuSX9tMWxPTBe154bdMQ3f/FEZewKUvlYlKbYZquz40vin 7+oNMOopyEomnCqdGIWOlBTQ6HVbFpqfr4ls0SlYRlx2rhgtnSdYuk4H5UOKo3UYMwoA cHXZKUa8396znKBnPVDCMqsnt9z6dYhc2ZjI81QfDf+UAbsqBdmZ6Wbm+E0l7w77ENO1 ocg/flvKf+ZHqr5dcJdP4AHSGL0kibUtl4W0iOimQnQOz43CmiqLDUQIcn04uxSdDUas J/IQ== X-Gm-Message-State: AO0yUKWBBo8w3snegBdcP8fPz9ASqUKJ5PdH6ReXXI0H+wIWOrxdfO2l OkEcK1Qqvt3js3DCycAnsqlTdrGroqc= X-Google-Smtp-Source: AK7set8wMrOqDfT7CZP+3w1w3JB04DQEg+TLIn3ovFUbTFv2EDk6St0AtACcJNEYP2Xs81UYpoyOMbQ6C/Q= X-Received: from sdalvi-android.chi.corp.google.com ([2620:15c:2:a:1808:5921:faf8:7a68]) (user=sdalvi job=sendgmr) by 2002:a05:6902:1003:b0:9f5:af6b:6f69 with SMTP id w3-20020a056902100300b009f5af6b6f69mr699242ybt.5.1677268680297; Fri, 24 Feb 2023 11:58:00 -0800 (PST) Date: Fri, 24 Feb 2023 13:57:45 -0600 Mime-Version: 1.0 X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog Message-ID: <20230224195749.818282-1-sdalvi@google.com> Subject: [PATCH v1 0/2] Skip waiting for link up during probe From: Sajid Dalvi To: Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , " =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= " , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski Cc: Sajid Dalvi , kernel-team@android.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org When the Root Complex is probed, the default behavior is to spin in a loop waiting for the link to come up. In some systems the link is not brought up during probe, but later in the context of an end-point turning on. This patch adds a device tree property to the Synopsis designware root controller to skip this loop. Sajid Dalvi (2): dt-bindings: PCI: dwc: Add snps,skip-wait-link-up PCI: dwc: Skip waiting for link up on probe Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml | 8 ++++++++ drivers/pci/controller/dwc/pcie-designware-host.c | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-)