Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2180815rdb; Thu, 21 Sep 2023 10:41:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEcOgVar2TfgIVBa8dAkoXUJP7EQDdDEelRMy3MOC6rV1sss1c1a3ZttRZ8WrsgWs7dP5yG X-Received: by 2002:a05:6808:1a86:b0:3ad:f536:2f26 with SMTP id bm6-20020a0568081a8600b003adf5362f26mr4709633oib.18.1695318077934; Thu, 21 Sep 2023 10:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695318077; cv=none; d=google.com; s=arc-20160816; b=0QR3AmPycTPH6QDEcnxf5+UFWz74lYtYOMsJx6ytxxuVXrceu8R5fZq7POU9EuLE+j MIsOfeLZACMRvNlfoFbFJFexf3rO2SHWTk1hjwUx3K1Z7Nj7l+Bl9SnM9Nr7I9Uydrep Uz5zV6IuGUmTDD8HCB5SDz+Um3Xa9mQ6IrMsJjY5EwgrOA9QgWmNSuJ1iet953j+XAPS SBBB1GhYaLA4OiyjWQ+cWZh3/yBJeYqg4t4XPysFRUcZPOQYqoxL7hZ4H1D84+r53NFp hnJfyfyfAFV0casW85XdBo4UAo/LgQ8zjNYL3mkMJVWOkAZ0+8SIuWV34bTP/T4b2Fd6 S1jg== 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=80l9AHLXYtJCrm4ZrLB/k6aypbQHRzyUNtGFRNDA6eE=; fh=gpFN2Adx9b/wF/QCFsXPQ351D7si69Iwz2pmN7sF45M=; b=r5pbGirVrXXumXP4u++mTA3PZQWoM5T/WD2cQp7nLDoF0g2rSf2GO+kIHLCuO7vllO Cuv4lXEhtnO2+jrMd9v2nNteFDQLmAIDly0grO5iV9HW7OSdX651MAWFRGPijw6Y1thi DZp1UJ4zbCSZPCxjmHd+w/aLub22cR6K2zcDXIkAG6kTetD5GUgsgI86jlGHoOdGyEcO HXLwp8lrgr50wf6AM5WFsxSs3YP+U2ohRukjGyWl3IhXb4HerISzGXIZix6fjCJ3UBfn wzGtp7KeHEt2MkWn4++plfsFtO26gJCFPq2gJn3C7bzHACOp/J/XmbtkpBO0njQ05RT5 B8ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rxRvquE2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id u41-20020a056a0009a900b0068fdeb84453si2013592pfg.265.2023.09.21.10.41.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 10:41:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rxRvquE2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id B3BC882BB1BB; Thu, 21 Sep 2023 10:28:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229534AbjIUR2V (ORCPT + 99 others); Thu, 21 Sep 2023 13:28:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230241AbjIUR1z (ORCPT ); Thu, 21 Sep 2023 13:27:55 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1797C1702; Thu, 21 Sep 2023 10:01:02 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A02BC116D2; Thu, 21 Sep 2023 08:40:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695285664; bh=2VdLPNsimLvVm8/OS9eY5PGJy7+LPxUcwGgt59gxfqY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rxRvquE2e5HPBCLFPy0H0o6E9xx6fbywXnllqYBDTKVWRTLi2mp7JMvhCtcIcBY3x Ol1oxICfHa4EYEfwwjeGYtpYo5mOrqX3V3Y9mwJb9VQOHMFy49jqlik4yKXmCVzpMl LGcgit6XPqXOz4KRMx9ziyC3rhDv4L9W4AWNqrvRi87IrO3zTvwmNLO+OMu97Ln5GZ eXmSk8jtD7LGwZlJjN1GGKNbnxpuC/Rd/PCre5eQrhRA3d86X3UqMdQo4IMZydEyut 2L7sEZBa5yx/S7oKM7elxZ/sanZGgxgbptJJ7UsDLB/W0b29LNAQGUWBc5beBAsL6Z /D4Nwe+O2G7oA== Date: Thu, 21 Sep 2023 10:40:55 +0200 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, quic_krichai@quicinc.com, quic_vbadigan@quicinc.com, quic_parass@quicinc.com, Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Kishon Vijay Abraham I , Vinod Koul , linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mhi@lists.linux.dev, linux-phy@lists.infradead.org Subject: Re: [PATCH v1 4/5] PCI: epf-mhi: Add support for SA8775P Message-ID: <20230921084055.GD2891@thinkpad> References: <1695218113-31198-1-git-send-email-quic_msarkar@quicinc.com> <1695218113-31198-5-git-send-email-quic_msarkar@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1695218113-31198-5-git-send-email-quic_msarkar@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 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 (howler.vger.email [0.0.0.0]); Thu, 21 Sep 2023 10:28:36 -0700 (PDT) On Wed, Sep 20, 2023 at 07:25:11PM +0530, Mrinmay Sarkar wrote: > Add support for Qualcomm Snapdragon SA8775P SoC to the EPF driver. > SA8775P has the PID (0x0306) and supports HDMA. Currently, it has > no fixed PCI class, so it is being advertised as "PCI_CLASS_OTHERS". > > Signed-off-by: Mrinmay Sarkar > --- > drivers/pci/endpoint/functions/pci-epf-mhi.c | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/drivers/pci/endpoint/functions/pci-epf-mhi.c b/drivers/pci/endpoint/functions/pci-epf-mhi.c > index b7b9d3e..4b349fd 100644 > --- a/drivers/pci/endpoint/functions/pci-epf-mhi.c > +++ b/drivers/pci/endpoint/functions/pci-epf-mhi.c > @@ -114,6 +114,23 @@ static const struct pci_epf_mhi_ep_info sm8450_info = { > .flags = MHI_EPF_USE_DMA, > }; > > +static struct pci_epf_header sa8775p_header = { static const struct... > + .vendorid = PCI_VENDOR_ID_QCOM, > + .deviceid = 0x0306, Why are you not using a distinct device id? - Mani > + .baseclass_code = PCI_CLASS_OTHERS, > + .interrupt_pin = PCI_INTERRUPT_INTA, > +}; > + > +static const struct pci_epf_mhi_ep_info sa8775p_info = { > + .config = &mhi_v1_config, > + .epf_header = &sa8775p_header, > + .bar_num = BAR_0, > + .epf_flags = PCI_BASE_ADDRESS_MEM_TYPE_32, > + .msi_count = 32, > + .mru = 0x8000, > + .flags = MHI_EPF_USE_DMA, > +}; > + > struct pci_epf_mhi { > const struct pci_epc_features *epc_features; > const struct pci_epf_mhi_ep_info *info; > @@ -677,6 +694,7 @@ static int pci_epf_mhi_probe(struct pci_epf *epf, > } > > static const struct pci_epf_device_id pci_epf_mhi_ids[] = { > + { .name = "sa8775p", .driver_data = (kernel_ulong_t)&sa8775p_info }, > { .name = "sdx55", .driver_data = (kernel_ulong_t)&sdx55_info }, > { .name = "sm8450", .driver_data = (kernel_ulong_t)&sm8450_info }, > {}, > -- > 2.7.4 > -- மணிவண்ணன் சதாசிவம்