Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp324781iob; Tue, 3 May 2022 18:48:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZYT2zewz9AFQFlDx4EkEKNMNHnPfnQX1uGyHcBCq59HH+iHRaFCCNK6NmqKKj5Z3hLEWU X-Received: by 2002:a17:906:559:b0:6f3:8ba6:39c8 with SMTP id k25-20020a170906055900b006f38ba639c8mr18317343eja.486.1651628917960; Tue, 03 May 2022 18:48:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651628917; cv=none; d=google.com; s=arc-20160816; b=kQKXS5BiUvmJGES4NuN/iDxGQleBz2ILj+j+g9Io/ZtiemlxkiCAuDN7Ie8YsNqzB+ gosEo10pwBYPgCU2nR2Buns3PFKvj12BSASW8VjnICydyLgkc0hqzQA5zTtI12CBQCE9 RvaFLgy0VjtE04Ju8iqK1Q/s1PuqQPUquC8MOGD1R1QEsimP34jBFebEN7GiTrSD2KAv oXHEQmdN/W5u1Lx/v8GEDorE0UFZXJn9JCpCbLghipmE7UBqlTegdPK2jXMBZVXs3v8z mhyrOMgtObiPr5pMU4iihTxhdjaVxXJmrKNmLxXohfvLTNyIqV71a+fmJfKZjzrViySo CqWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=LwInC3u+P26P5PnZTIsKQujdLKh6oxwPdUs8SWvhYMU=; b=0MklrfjLg5WGxLxjTPDl3C0HgTz2EpTSIREAAgu4XgkJIVw5l9herEYp/sEWXFfJpv V5oEM5ZWPSfQbFd2lF8KcGXbrqMkOT/7pr4VgOPuIDyTzdQqZBGBr6pv9tOWrUN/kSvh VNt270Bt4tw+HrynxnktOVNmueJJepILQU6a6kmFQszybQYTmrLvxSnvrOXpJGtQGiYy 9Z2a6KOVX86MxEe+D8M0UxP+k85DmPayuE1bB9978eUUc1NwcxIoIsoqjKLD/nnfTDQq Un4RgCwmSfWs9FjJLAAr8hNg1s5dYlO5THhHBHJuSMxS9oevngOm9sNpHRq3Q1rxO49l PFew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EuRM+xKH; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13-20020a17090686cd00b006e897db2df4si11919017ejy.155.2022.05.03.18.48.15; Tue, 03 May 2022 18:48:37 -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=@kernel.org header.s=k20201202 header.b=EuRM+xKH; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243806AbiECWrX (ORCPT + 99 others); Tue, 3 May 2022 18:47:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232766AbiECWrW (ORCPT ); Tue, 3 May 2022 18:47:22 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9631A427FB; Tue, 3 May 2022 15:43:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 43153B82225; Tue, 3 May 2022 22:43:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD586C385A9; Tue, 3 May 2022 22:43:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651617826; bh=Z6S2y7SUOakVPhPiGmuDOM2Gy1kVlAWgAuhNi3LGULs=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=EuRM+xKHtw/nFA9UEqMY8i0S22dY3/CFsn8xt3cAPhCzU7Cb70s7Tjb/tsbOrkfOB hmwglyPYxM+Qy7tc1L1Kxs5nHLEwc3tjFDaiSc1vgK2Hu/R6o1NorSbgtht9PIBh3A mXoJm8vNgHYoTY6Rj3E5SBK94H3nfJnYJpkd0/DcaZNeW+gERmyBV3BMuXzKtdIkK8 Ri8g1gkBSP2Cr3AgisBjXoDnEo5iK4/+poNBWnGliVY5boQyktMQfT7ov7jObnJcAh DlpCgLsVEaOPLX6mB5fUTqwiAvGEylHMjupQGJBfPeeQJjpNgYZgBXuvSQcE2YbAmG IAnGw0zNxZBng== Date: Tue, 3 May 2022 17:43:43 -0500 From: Bjorn Helgaas To: Bjorn Andersson Cc: Stanimir Varbanov , Lorenzo Pieralisi , Rob Herring , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI: qcom: Remove ddrss_sf_tbu clock from sc8180x Message-ID: <20220503224343.GA415146@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220331013415.592748-1-bjorn.andersson@linaro.org> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Wed, Mar 30, 2022 at 06:34:15PM -0700, 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 Since this fixes a regression that we added in v5.18-rc1, I applied this to for-linus for v5.18. Thanks! > --- > 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 >