Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp4799273pxb; Wed, 20 Apr 2022 10:13:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLGijRXrm/DkoSOpUMc6JJhursXmzYH1HaLVmj+pabmRsg+c4oPLQ5xNDjzeUEDrNVOXUx X-Received: by 2002:a17:906:3919:b0:6e8:688d:5fd9 with SMTP id f25-20020a170906391900b006e8688d5fd9mr18901088eje.263.1650474827338; Wed, 20 Apr 2022 10:13:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650474827; cv=none; d=google.com; s=arc-20160816; b=DkJXgC4Oxw4SSoMSDzsmeX1h+JAOdaxZsW+0ONlJ/nE5ur6vjSIgAKNjXwqhg7a90o UHhoo8FqS2zYiNDDaJIdT4qabcD5Mv7c/WI3BKCxCjltQD2GdoL3i2yIuxNbknO6Wajx lLDcf/jZBRxHofi7YuTTRUnKK/5Vpn/NhYg/5YQARNuu0Tx6E4l/jT8m2iR9kKd/WewC qGuUag7JSradFNtVk1K15bYIUmfAzsjVJe84YFiK3b9oGYeTSmLMoUtO113XihbPd4gV h35OAPONkH9yG8WUNAZbLgE32J4qKn05WKsfvQrJE4IKS5YThuVYlDzOTmFzlWRC4+pQ /bpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LEwAzLgdo/J0IOG1epW97Y3lbB4M4tnpZ0RnWfy4qe8=; b=Brjef4B+0qD+0yQz0/wYhWjyjyti/2scvP2zPtBbfdM0aEC95puDZpapZVK3Qbmlkq Y1WS27owLDrjONStDpYbjTRakwAXb4uvP2AVyUQJqcpD2oNE637dtfqCTbB5TnfhoEvn k6QwG6zQmfeu6zTWXwXWrO/F5/k1auJFMhW2fShmDbbBYh0yrOIt8PujKxWZ+VQZay4k 12ugY/Ayi2BDWQ2EZpwevICnC0jE6rj9+6gXbbn2xdg5NBeYRKRyXH6L2+hLvWN53tio J9j2Uv5kI4P8IX4ZQYpRFKJrmt90gvHfC85A2zTmCYAK0WG+P7CwTtIGmCkXIQtPRyqu JLdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aU24999x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v6-20020a17090690c600b006ec0aaff9cfsi2088634ejw.932.2022.04.20.10.13.22; Wed, 20 Apr 2022 10:13:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aU24999x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356184AbiDSSJZ (ORCPT + 99 others); Tue, 19 Apr 2022 14:09:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235918AbiDSSJY (ORCPT ); Tue, 19 Apr 2022 14:09:24 -0400 Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A46B3C70D for ; Tue, 19 Apr 2022 11:06:39 -0700 (PDT) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-2edbd522c21so181140437b3.13 for ; Tue, 19 Apr 2022 11:06:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LEwAzLgdo/J0IOG1epW97Y3lbB4M4tnpZ0RnWfy4qe8=; b=aU24999xmL9jwFsyEgwMlT40a4Hj8UX0RRYOB9wmdIGrDMThR0Y/Aj4y1r99YzgJto 69ELrvTHJNUj5OSp5epUXdfPXgXSrW+ZoHZ/+jR3GV4EJSRsM+3obSlQisxNQPljSLxn pmmNQzu+pt2ZoMWkRSNsQWGDnLsUcdat4L2Ols9OAWccvA/70g5n7T5dvkgu50R2aTwd MR3CuqjK0NFffdchRl77AvWn7KAw16rtSj/AMKPMUVXGJCtxIHDf5r0PL7uzqHa6xviB mumlA1Q+QmKRJnV1YVwaYKm5JEy1BVPzjEG5bY9qo+IodXgTjLE1j2pUNJo7fHnt4Ld1 q48A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LEwAzLgdo/J0IOG1epW97Y3lbB4M4tnpZ0RnWfy4qe8=; b=G4lmfgfpj8v6Ai2P2ca1BJkEsXXGPWqHXUy3VgsKsRsEO5+9HjaRiY05/bA02Ojm1Y 5v4khE4fkhTl4HqvbVfXnzm74UqfviZ1gDg82gieqCnpJWzgtlM43/dm2X1LtRICFIvG mTXTEpVFc4TxAdinOxKuNz5NK8RCYa1rSaXnUDiiEQUtqKHqalmBy1BrfQNxzczXNM2S zQYAWmzWcWay7e4i/280aO785/d/0jhT0g9S/M1qCUcE7jEMlpDn0jIA+I9ulZl7IMoD C5UrfAn/5CI2JwvUbMJffHIzPXHDCGiRItotAJ5YZOAxMeSdLo5rf7xYGYtWGAVORMPt QbMg== X-Gm-Message-State: AOAM5305XCpDplVT7ZBdcug3DWra2B5xD+Io3uvYTXuhRjwA5rEbuEtX vxJ3ADnGVoEs/TNoFC2HlaAxYRXsweKN9fKCRN6j+g== X-Received: by 2002:a81:324e:0:b0:2f1:d8f4:40df with SMTP id y75-20020a81324e000000b002f1d8f440dfmr2846060ywy.289.1650391598774; Tue, 19 Apr 2022 11:06:38 -0700 (PDT) MIME-Version: 1.0 References: <20220331013415.592748-1-bjorn.andersson@linaro.org> In-Reply-To: <20220331013415.592748-1-bjorn.andersson@linaro.org> From: Dmitry Baryshkov Date: Tue, 19 Apr 2022 21:06:27 +0300 Message-ID: Subject: Re: [PATCH] PCI: qcom: Remove ddrss_sf_tbu clock from sc8180x To: Bjorn Andersson Cc: Stanimir Varbanov , Lorenzo Pieralisi , Rob Herring , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Bjorn Helgaas , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 31 Mar 2022 at 04:31, Bjorn Andersson wrote: > > The Qualcomm SC8180X platform was piggy backing on the SM8250 > qcom_pcie_cfg, but the platform doesn't have the ddrss_sf_tbu clock, so > it now fails to probe due to the missing clock. > > Give SC8180X its own qcom_pcie_cfg, without the ddrss_sf_tbu flag set. > > Fixes: 0614f98bbb9f ("PCI: qcom: Add ddrss_sf_tbu flag") > Signed-off-by: Bjorn Andersson Reviewed-by: Dmitry Baryshkov > --- > drivers/pci/controller/dwc/pcie-qcom.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c > index 6ab90891801d..816028c0f6ed 100644 > --- a/drivers/pci/controller/dwc/pcie-qcom.c > +++ b/drivers/pci/controller/dwc/pcie-qcom.c > @@ -1550,6 +1550,11 @@ static const struct qcom_pcie_cfg sc7280_cfg = { > .pipe_clk_need_muxing = true, > }; > > +static const struct qcom_pcie_cfg sc8180x_cfg = { > + .ops = &ops_1_9_0, > + .has_tbu_clk = true, > +}; > + > static const struct dw_pcie_ops dw_pcie_ops = { > .link_up = qcom_pcie_link_up, > .start_link = qcom_pcie_start_link, > @@ -1656,7 +1661,7 @@ static const struct of_device_id qcom_pcie_match[] = { > { .compatible = "qcom,pcie-qcs404", .data = &ipq4019_cfg }, > { .compatible = "qcom,pcie-sdm845", .data = &sdm845_cfg }, > { .compatible = "qcom,pcie-sm8250", .data = &sm8250_cfg }, > - { .compatible = "qcom,pcie-sc8180x", .data = &sm8250_cfg }, > + { .compatible = "qcom,pcie-sc8180x", .data = &sc8180x_cfg }, > { .compatible = "qcom,pcie-sm8450-pcie0", .data = &sm8450_pcie0_cfg }, > { .compatible = "qcom,pcie-sm8450-pcie1", .data = &sm8450_pcie1_cfg }, > { .compatible = "qcom,pcie-sc7280", .data = &sc7280_cfg }, > -- > 2.35.1 > -- With best wishes Dmitry