Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp168084iob; Tue, 3 May 2022 14:12:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOKhKk3fkGvzOi2lOGv5UcKwC1WgRBJzGyKQCxAg1xwcNSPhUdvxF07Pox+onxDvHATcZX X-Received: by 2002:a17:907:3f25:b0:6b0:5e9a:83 with SMTP id hq37-20020a1709073f2500b006b05e9a0083mr17736894ejc.659.1651612369491; Tue, 03 May 2022 14:12:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651612369; cv=none; d=google.com; s=arc-20160816; b=rB4oCw/UZVY7LtmLRN2OjzFPJiDCUw87QK2f3j+W3V0jGehIGWcAxYFBq11gOIAuIl DCWMzGl080/xAfkH5DarA4mh8OM5kgmI1uNY1CkhW+39Mf39Y7gpqpt5BCnFc8IBDr0H wy+cxgrbn8hX0rTwwtDOkPUhoS/vclhLBP5hggprGy2EZXPv4sNye2wp3vRpAreQQPHu 0YNL5hrdL/JHjTxMnKafKjWbYZKXUC1fra/tcAMgDWfVXeOFsn4t3XyVSQmDEzFJ0Fly ezNrFrUEsTVbHJ9xbfliLsRTPEDB4ztRR7sz8pf5lzfZbRo3JQ7HhiA2AQ1Nj5FBPz7Y /pzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=QfFh0JorF10YS8jRL4ot/BDPWmDj6EZaL7oZvjv3Y4g=; b=iJG2yvOihu5R1VwqonkvDnPBYZ0S5wG0KwDLLCRcibRF9rpvO79nblFopZqkB04YPK mQVRgCUcF7+T5h60NrbSZj7dMcdyOCBLcptYZwaFJ/+RuhFjUyiMM5b1h9qyOk1M6YUg S7/G/7A3UjdB0wOuv7YgNv6bl1HVZmdcpk/GIP2ajyXNeXwWXLKGI/rPESlDmmvIkeOt qJgs0SD4G5tGIu1TnbJlwMIhMzieHf2/lZtt7oUKG/r6BhxeSAO3bproDYz9GZN9FP1S 9Aea7cVElP5uWy4gapPYBM/S6MNMV0c+4tte7ZdyWpf+RMwc2ifaSDVCYlhBay8Kwah0 RG6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=ZmPQGGxZ; 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=kali.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z22-20020a50e696000000b004260110f8b5si19253608edm.34.2022.05.03.14.12.25; Tue, 03 May 2022 14:12:49 -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=@kali.org header.s=google header.b=ZmPQGGxZ; 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=kali.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240558AbiECRjN (ORCPT + 99 others); Tue, 3 May 2022 13:39:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240544AbiECRjD (ORCPT ); Tue, 3 May 2022 13:39:03 -0400 Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFBE5205CD for ; Tue, 3 May 2022 10:35:30 -0700 (PDT) Received: by mail-ot1-x336.google.com with SMTP id h10-20020a056830400a00b00605e92cc450so10128367ots.11 for ; Tue, 03 May 2022 10:35:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kali.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=QfFh0JorF10YS8jRL4ot/BDPWmDj6EZaL7oZvjv3Y4g=; b=ZmPQGGxZ1xNN/3ZnxABfH+S4dxGHSOp4xV35ALw7zVi0fEbQqhjvdLL33LibysCLc6 gndVhg10yKBFoPGn++Q1Bjr1fGYAHLH89H69AumHDYCEvZRTJkLZcFWHu1rS6kS4yt/H YNtgfRTi1E3KvA/oPx/GVRJbBIYkaRYcUNaf8iq16nd6zoyd3HL9LbytMd4ijZ/qh6Qb +JLlP7UrqDZMTfq7gBD/ige/UEfSJ2LGEGUUSGqjNmG2qNuwFB0M0hJO/mgp78zhmprQ E/RjYf8s4qXceb2u7XoFE4QwO1sKpOYyOUSz+epbIY/4EcjmqfjflN10M/9hu4sOOPSf euXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=QfFh0JorF10YS8jRL4ot/BDPWmDj6EZaL7oZvjv3Y4g=; b=ejXy32EgXrr06xIKhS3f0kpmkIuAjzI/LxQdt1cL+FLW3PuxlGeDSiZe2yjY8MPHMm dZJC/ifwPhvUpogkr9OAZa+E5r/Ajzbi3TyIwcw8AXgCzV1tc1uFIiQ1YUkvffkRhBse qwY/XF3ThqDt/mjchsglXdK/i5KFSnRG+DLgYDn8PYXE7lsvcVibmcw5KiNldd+EfeWn VIgy0+hl+pLuxGGnjRI+1vPUzu1DnVq7kk4/IwC3ILnESCoBYOPU87tkcWbkOEBhf4/D 0VxihgtlX941W67TU6Y17/VNDc/RYWQi54MI57DkgG6wFKfjtYqi5cbSdBmHAQ0TNarx yDVQ== X-Gm-Message-State: AOAM532+tsQjMP2RXuwrc11bbYc7f85DWE8XN1+O+wD+D6QJcLXJsg1Y 9YSFPsT9qIpjjMcHLuClVA7zbg== X-Received: by 2002:a9d:480e:0:b0:606:59b:2b2 with SMTP id c14-20020a9d480e000000b00606059b02b2mr5490428otf.277.1651599329952; Tue, 03 May 2022 10:35:29 -0700 (PDT) Received: from [192.168.11.16] (cpe-173-173-107-246.satx.res.rr.com. [173.173.107.246]) by smtp.gmail.com with ESMTPSA id p203-20020acaf1d4000000b00325cda1ffacsm3507693oih.43.2022.05.03.10.35.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 May 2022 10:35:29 -0700 (PDT) Message-ID: Date: Tue, 3 May 2022 12:35:27 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH] PCI: qcom: Remove ddrss_sf_tbu clock from sc8180x Content-Language: en-US To: Bjorn Andersson , Stanimir Varbanov , Lorenzo Pieralisi , Rob Herring , =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= , Bjorn Helgaas , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220331013415.592748-1-bjorn.andersson@linaro.org> From: Steev Klimaszewski In-Reply-To: <20220331013415.592748-1-bjorn.andersson@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 3/30/22 8:34 PM, 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 > --- > 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 }, Hi Bjorn, Tested on the Lenovo Flex 5G and fixes the issue I saw. Tested-by: Steev Klimaszewski