Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1121047rdh; Fri, 27 Oct 2023 05:32:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFPoOsnMQ4gyFTsnc9Qo/IELj+QtGV/3kph4EK5gTyMe9GQBr9ZhYXtyybe5Y7EfkPbfDlx X-Received: by 2002:a67:e1c6:0:b0:45a:d590:6035 with SMTP id p6-20020a67e1c6000000b0045ad5906035mr2852400vsl.9.1698409934648; Fri, 27 Oct 2023 05:32:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698409934; cv=none; d=google.com; s=arc-20160816; b=j8Wl7928m22zpApgDB/VIPb8DWZmQl6QnvkyQ8t8hKz1Ms73m276GBinRy5y723gmc yyUZGGeOPrSmwFTIVcBJuvjLHD7MSBdCofWr9hlsPj8zn5WxRlGNmkb8cMO44FaqajuI KE6+NC91zoFcbrm0LyanG+GUbnG1pJvw/o7AlcttxWz6laul7p2u6HfCcrxxWnd9+jYH dpbAN/NgDFgRiFpqGIF6yPnTM37e266JFrptv/tSX++fLZ9wDMPmWnV0+qQmVUi+NV6w 6ewQG4QSpTnz2b9wRF1C037x+6ZX+oHvkRGzX5YFsH/QB9huiYcSK61WA0kb0jl2j6oV Uzeg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2O0mnloau5ib2NMsCZ3LeWJ71+I+Luh1RL9O7jygP74=; fh=E/o1o2BXKmBwr4jC5fVCIuTSLABcdolP0ki2CDWsTtQ=; b=UnPhJuNRDBAd7nRIWdU5btS45Ko91gv1GSbKxB577npSsLlD0cxhN2yhFWe4ssIACb SFsx6gnzCnxqYDYJYl5+TLJBwFnZCN01rRkyiXJCySAH5bHgKuPRfZBkDJ9BSLausDaa quJ4Z+TfWpiC47l50ekVMUqdNOlB6QnJyvQcdc0en9gFvU9ZqxCO3Pqws42x3TPkm62e WAi+GItskPG7KVpnuXfrnY9NzubDhTBXOVxhw4WXLfY3NOOPG6dkuv2lbCaN3my1493l gXwcd3DuYswc8WLZpH6kNuYR2R+OMuLC3RN1rWpI2Tlj6lfjnvRglT0lduO9idIAIP/F gIUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YXPd5is5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id p14-20020a056102200e00b0045780d3dbbdsi146741vsr.611.2023.10.27.05.32.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 05:32:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YXPd5is5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A2FD18271765; Fri, 27 Oct 2023 05:31:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345825AbjJ0Mbn (ORCPT + 99 others); Fri, 27 Oct 2023 08:31:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345420AbjJ0Mbm (ORCPT ); Fri, 27 Oct 2023 08:31:42 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACBB2129; Fri, 27 Oct 2023 05:31:39 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47DB2C433CC; Fri, 27 Oct 2023 12:31:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698409899; bh=AcMSafgikuw0QDyO06n+uZljx9TSL1PuVKSPh0RB4Og=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YXPd5is5+RQIvKnCK/8PpgTaXHBwPVeKYqBRMKl0KC/SBZQjgC8G4bAjW/wFEQqly Hm7If3WAqhzHtmrP8f/U4c/YSL83ewnD/cfMcBYeNl9lQ+2Mj1t2Ttti2SlCWGU8dy yG3SMedBeYlUVuboANt3CpegrTZuMnFEKKxv5UoZelpF/OaS2zRNr7Q/l5/pPOXIZ5 bkCk7+3dbcK2TNEolNzGvkwFNZjeyFSVPEvfeolQim7sgvd8vOAxDoVealQMR3dqOq yuXNE8+anr0uHBQHT3y8FyGYez0G8EMaenJ3Ph5U5FvI6DVZIzKCvxYijSQ1XzKtaj x56tnB/J3nsDg== Date: Fri, 27 Oct 2023 18:01:25 +0530 From: Manivannan Sadhasivam To: Mrinmay Sarkar Cc: agross@kernel.org, andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, konrad.dybcio@linaro.org, quic_shazhuss@quicinc.com, quic_nitegupt@quicinc.com, quic_ramkri@quicinc.com, quic_nayiluri@quicinc.com, dmitry.baryshkov@linaro.org, robh@kernel.org, quic_krichai@quicinc.com, quic_vbadigan@quicinc.com, quic_parass@quicinc.com, Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Kishon Vijay Abraham I , Vinod Koul , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mhi@lists.linux.dev, linux-phy@lists.infradead.org Subject: Re: [PATCH v3 2/5] PCI: qcom-ep: Add support for SA8775P SOC Message-ID: <20231027123125.GC17527@thinkpad> References: <1697715430-30820-1-git-send-email-quic_msarkar@quicinc.com> <1697715430-30820-3-git-send-email-quic_msarkar@quicinc.com> <20231025075317.GC3648@thinkpad> <20231026061035.GA4915@thinkpad> <23f3f2a8-dcbd-6764-195b-49bcec451084@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <23f3f2a8-dcbd-6764-195b-49bcec451084@quicinc.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 27 Oct 2023 05:31:48 -0700 (PDT) On Thu, Oct 26, 2023 at 12:29:30PM +0530, Mrinmay Sarkar wrote: > > On 10/26/2023 11:40 AM, Manivannan Sadhasivam wrote: > > On Thu, Oct 26, 2023 at 11:08:03AM +0530, Mrinmay Sarkar wrote: > > > On 10/25/2023 1:23 PM, Manivannan Sadhasivam wrote: > > > > On Thu, Oct 19, 2023 at 05:07:07PM +0530, Mrinmay Sarkar wrote: > > > > > Add support for SA8775P SoC to the Qualcomm PCIe Endpoint Controller > > > > > driver. There will be some change specific to SA8775P so adding new > > > > > compatible string. > > > > > > > > > What are those specific changes? > > > > > > > > - Mani > > > Need to enable cache snooping logic for SA8775P only. > > > > > Then you can add the compatible to the driver at that time and use the fallback > > till then i.e., just document the SA8775P compatible in bindings and use both > > SA8775P and SM8450 compatibles in the dts where the latter will act as a > > fallback. > > > > - Mani > > I am getting below error in dtb checking if I add SM8450 as fallback > compatible in dtsi. As both has different set of clocks. > Ok. I didn't realize that the clocks are different. In that case, you need to mention it in the commit message to make it clear and introduce a new compatible. - Mani > //local/mnt/workspace/Mrinmay/new_lemans/next-20231018/linux-next/out/arch/arm64/boot/dts/qcom/sa8775p-ride.dtb: > pcie-ep@1c00000: compatible: 'oneOf' conditional failed, one must be > fixed:// > //        ['qcom,sa8775p-pcie-ep', 'qcom,sm8450-pcie-ep'] is too long// > //        'qcom,sdx65-pcie-ep' was expected// > //        'qcom,sdx55-pcie-ep' was expected// > //        from schema $id: > http://devicetree.org/schemas/pci/qcom,pcie-ep.yaml#// > ///local/mnt/workspace/Mrinmay/new_lemans/next-20231018/linux-next/out/arch/arm64/boot/dts/qcom/sa8775p-ride.dtb: > pcie-ep@1c00000: clocks: [[31, 66], [31, 68], [31, 69], [31, 78], [31, 79]] > is too short// > //        from schema $id: > http://devicetree.org/schemas/pci/qcom,pcie-ep.yaml#// > ///local/mnt/workspace/Mrinmay/new_lemans/next-20231018/linux-next/out/arch/arm64/boot/dts/qcom/sa8775p-ride.dtb: > pcie-ep@1c00000: clock-names: ['aux', 'cfg', 'bus_master', 'bus_slave', > 'slave_q2a'] is too short/ > > > > --Mrinmay > > > > > > > > Signed-off-by: Mrinmay Sarkar > > > > > --- > > > > > drivers/pci/controller/dwc/pcie-qcom-ep.c | 1 + > > > > > 1 file changed, 1 insertion(+) > > > > > > > > > > diff --git a/drivers/pci/controller/dwc/pcie-qcom-ep.c b/drivers/pci/controller/dwc/pcie-qcom-ep.c > > > > > index 32c8d9e..4c01c34 100644 > > > > > --- a/drivers/pci/controller/dwc/pcie-qcom-ep.c > > > > > +++ b/drivers/pci/controller/dwc/pcie-qcom-ep.c > > > > > @@ -858,6 +858,7 @@ static void qcom_pcie_ep_remove(struct platform_device *pdev) > > > > > } > > > > > static const struct of_device_id qcom_pcie_ep_match[] = { > > > > > + { .compatible = "qcom,sa8775p-pcie-ep", }, > > > > > { .compatible = "qcom,sdx55-pcie-ep", }, > > > > > { .compatible = "qcom,sm8450-pcie-ep", }, > > > > > { } > > > > > -- > > > > > 2.7.4 > > > > > -- மணிவண்ணன் சதாசிவம்