Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2389511rda; Wed, 25 Oct 2023 00:56:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGQEcpLZ7xCjJP8d4WbPuL8Hvcrp0YAHE4cyuPynnIWDIzoMthdl8EqKWTdU9mAtkFBpNX3 X-Received: by 2002:a25:69d2:0:b0:da0:4dea:c263 with SMTP id e201-20020a2569d2000000b00da04deac263mr3825649ybc.10.1698220593712; Wed, 25 Oct 2023 00:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698220593; cv=none; d=google.com; s=arc-20160816; b=GTR3cBXmXzhbS5ucWevpzNxgro0QQPcVN1YgxNr1JlYxfWxtERzwOIPCqbHFKoIAYK NAx1BWnKbsDFV32YhcKM1YQsn59n/t3wYnAQqtelL9MGSXBmjPWGn45UsVofKciMxWq0 fTe33IfFeSGfQ5kaxlQi3TO8tJXqr9xv7t329wXd8aIwQX3VRn+Fwi2DHkL5/DnOiMQU C6ZqJEMnauDBwJLkaV/kTMD7Ca5zgoM5P5gU4MRWnP9Z9kNNXfzT12eR6fWwsh0nsXg/ 6vPqxjWht5aNgNmFBS694H5kRwOKC6afZhenXd9ZrnZPIA0pVsX5miYFrxlM1mw2P0nD 0wEg== 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=Xy3M6eWX8LRxmAVPipEew9SnMpHVlSSWzIWvYpQ6XWY=; fh=E/o1o2BXKmBwr4jC5fVCIuTSLABcdolP0ki2CDWsTtQ=; b=LUc+cf/LNeQpP7psL12VRRxh8PD/hHN0q/WCjmIY7FJl3c0QTf8zxKq2Jvs6krIcIX oMaxxK4lhLDSADdZMGRFeXk5W2pJ8ixF0SIb6ZjbcQXwj48ASb2HtB9VUkRrK6AVgzIl dxwMXYYcha+dhUS+CjtjLaZmNHu0A5CjeKYI28WsKAKfffYSNQfPQkumdegRgyWF/ELh henFxWaF9rQex1hAtDlZT2I8Bw0/0X5FEP8ThEDJSuCPCvx8dSYO6OkGOmNSudnKkwei OIF7pJQlwzRpfUixkAYzhtMvGtifbTm9Q824+71cfmNzG8NqKgF+kunWWdzb8+QTirjb /Mog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lw+NEy2A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id o205-20020a2573d6000000b00d7dc8ddc040si9984853ybc.152.2023.10.25.00.56.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 00:56:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lw+NEy2A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 10788802930F; Wed, 25 Oct 2023 00:56:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233150AbjJYH4S (ORCPT + 99 others); Wed, 25 Oct 2023 03:56:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231467AbjJYH4Q (ORCPT ); Wed, 25 Oct 2023 03:56:16 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9150310E; Wed, 25 Oct 2023 00:56:14 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BCD1C433C7; Wed, 25 Oct 2023 07:56:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698220574; bh=x80PJnG7nAPGTsFHONjS4hVK2x0U+9CPmHqrAKYFlu4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lw+NEy2ANBY8d0WQ2OwP2YDzQtbDr6/ECzBwW+pP/rrNcZmnp4jvEZdeoHewIJhVU x6mzUQcvzIuW5eEIfUEq9NPdMbG59W0in2EjJw/4PqbgogPXdLgGCKLR3Z4EsPydQF uaiEO+tPmIw9X79doZ6koGK2nH7J4jZXt4Ge//NgSF+t1FLr8UhTym7DTmOXpdYL9o IXzHILuVbfNB5BMAVMFLI23Yg29F8OThWTE/x1JuXFGyNkYhJS7WPT9yYoNEHnU0r9 /DMEkledpr6RqJdXxYH/QSuIP4Xctr8TtoNiGfzWL2MLho1Kwfv4m6i0fXHSnBL6HV c/G9TdWYZS35Q== Date: Wed, 25 Oct 2023 13:26:03 +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 4/5] PCI: epf-mhi: Add support for SA8775P Message-ID: <20231025075603.GD3648@thinkpad> References: <1697715430-30820-1-git-send-email-quic_msarkar@quicinc.com> <1697715430-30820-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: <1697715430-30820-5-git-send-email-quic_msarkar@quicinc.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Wed, 25 Oct 2023 00:56:31 -0700 (PDT) On Thu, Oct 19, 2023 at 05:07:09PM +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 Is the PID fixed? I thought you just want to reuse the SDXxx PID in the meantime. - Mani > 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 | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/drivers/pci/endpoint/functions/pci-epf-mhi.c b/drivers/pci/endpoint/functions/pci-epf-mhi.c > index b7b9d3e..4487260 100644 > --- a/drivers/pci/endpoint/functions/pci-epf-mhi.c > +++ b/drivers/pci/endpoint/functions/pci-epf-mhi.c > @@ -114,6 +114,22 @@ static const struct pci_epf_mhi_ep_info sm8450_info = { > .flags = MHI_EPF_USE_DMA, > }; > > +static struct pci_epf_header sa8775p_header = { > + .vendorid = PCI_VENDOR_ID_QCOM, > + .deviceid = 0x0306, > + .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, > +}; > + > struct pci_epf_mhi { > const struct pci_epc_features *epc_features; > const struct pci_epf_mhi_ep_info *info; > @@ -677,6 +693,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 > -- மணிவண்ணன் சதாசிவம்