Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp320923rdb; Thu, 19 Oct 2023 05:46:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IERRvywzoh4zAHNIhmc6pjbv4+VNG/AyjIKUYYf5votg+j2HyVllMQ+/wC2glzkw6r9ZhEE X-Received: by 2002:a05:6a20:3d96:b0:14d:4ab5:5e34 with SMTP id s22-20020a056a203d9600b0014d4ab55e34mr1995663pzi.51.1697719561818; Thu, 19 Oct 2023 05:46:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697719561; cv=none; d=google.com; s=arc-20160816; b=dNTMweMugpZn2p1BslQGZK4+nyNzKccJ6hLRWXzWEN85JvCG6kwiscuMtMnpKduZiY NmEJ4zP8HIW0FDzkkdowx92opE7kyd21QODEjrJmTVWndvWtUD9Gm6PTgXMqVypDKBWV x+InbAjEZe1rtKMiaM70RovgnLuqrpGgn3xZx7qa+83b9SK5K5kzks4koAN0Ncs3al2R Cj7jL/6bSLF8zIVQPgGal3kXFkvQosoksY/82t2tVWqWhsaumv/faQEGwCOU8KpyFPQE w3I2eNlorTUaqhpEogv/gzvkTDJqmCRDNRZJL/78KqYhsjwytKrvjJ1Nb9Ay6E74Tlo9 YbPA== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=XyPrAiFxGzk2dyGWiOGzrDGIGbpFiPYSNVDg4vtpN00=; fh=hQpbqsMnngWZgkDTUwJi4oWbwPEMMrQbkyoWHkx00lg=; b=c+bd3ibAmexdVhqoAWj+faivurHv1BXNwB8k2zN8bGRnNjrVZ+imtoy1qa8g/ecHUl MgoaqhTrRlSN5OM5AW4Bn5mhqM05g/tqr6664l8sCJBRGTAvhtahVAM9EsMSoB2h7cyz HMSE7+d6Riag1ljnh/LDfuPXi8YMXlU+CxtDnfqVirpSbXVc/jSQtj8DgjIiC0oo3ZQd k+SPTYIvsnjK4/bSP5Wt0Ws7bDOJU0h7t+JV0SG+JJq98xYaOcgSl6+HemhT4w+4OrPJ sdByvM0X3qy3g3CYGJhvCPAH7WTAiDT+xmk1YE8HJZPzP5qdzyKhilUUsMJLSWWpmQS8 Jo9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jhrxsiwl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id x4-20020a63db44000000b005897813623fsi4399427pgi.470.2023.10.19.05.46.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 05:46:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jhrxsiwl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 90C6E82B8A76; Thu, 19 Oct 2023 05:45:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345421AbjJSMpv (ORCPT + 99 others); Thu, 19 Oct 2023 08:45:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345380AbjJSMpt (ORCPT ); Thu, 19 Oct 2023 08:45:49 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AFD991 for ; Thu, 19 Oct 2023 05:45:47 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-507ad511315so6267317e87.0 for ; Thu, 19 Oct 2023 05:45:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697719546; x=1698324346; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=XyPrAiFxGzk2dyGWiOGzrDGIGbpFiPYSNVDg4vtpN00=; b=jhrxsiwluN2r/isaMXf+dCzNtXvdDyajEmFSXrd52Dkm+MWt3TmN+RLzImilLAjfEz JfyFbIg8Ovv5cqbOGATyIoi0pFYIonqJpjidtqgl1+X1VBqTDa0SOqWX4/QtMjtSD5IQ IMk3FTrCIXnPIUdYTie4LQEEPt8idHwm9eQe/gjx7jk/5NlBQUxFoTMHAcJivMDJlEh7 3DwNPEekzgwelzLDN4khrTrUPzaiArOGlvOE4z7tRkmpW1JGgJlzo7Sv38LbKChB+KCh AJahU57Qaj6QKnYJfK0sDtrYDmJdUFd1wY7KgINQcDxWIOof1GcKOvKBxVLVEF8hetco pHSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697719546; x=1698324346; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XyPrAiFxGzk2dyGWiOGzrDGIGbpFiPYSNVDg4vtpN00=; b=NgkUlVKqVDnbERUrB43Q1s74yGdqL+tzSk6fvLWZ2/5UvdCM51ONRhnwVsoRcv46oJ Ppa9+8Lpml8HYHegxQeAFmGllsRQ1rEV9kKXSJvWOok9pwGPSJeVBdFAhbrzolQIpz+2 yTQh8dtghd0Jilv2gzF05JDsrn2m0nUS99TFzc48RArritpL5jyR/EN0m31me3ri48lV 7MVPlBnL5OC2YzNPJu8iSr57S/7/wxEMabwiXZkqh4snIr9oWZnXkZufYBIIlxMTc0cL me4ZQuoCGPw7BuDz4KyFj3xy3qHrOvmToxS6QDpKNeoo6PnvRGBYVk26GBk0zSHK2vzB xlPA== X-Gm-Message-State: AOJu0Yyj3K4rJciBqwmXqqCfVDqOBI85Zgxe4w08z1gkvaFen4C1TXT+ HQm0KmSIlZ4OTyBbZd2LGygwzw== X-Received: by 2002:a05:6512:33ce:b0:503:257a:7f5d with SMTP id d14-20020a05651233ce00b00503257a7f5dmr1624496lfg.31.1697719545735; Thu, 19 Oct 2023 05:45:45 -0700 (PDT) Received: from [192.168.1.20] ([178.197.218.126]) by smtp.gmail.com with ESMTPSA id m5-20020a056000180500b0031c6581d55esm4437299wrh.91.2023.10.19.05.45.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Oct 2023 05:45:45 -0700 (PDT) Message-ID: <0de848a8-a658-4c5b-928b-5e948a22f291@linaro.org> Date: Thu, 19 Oct 2023 14:45:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/4] PCI: epf-mhi: Add support for SA8775P Content-Language: en-US To: Mrinmay Sarkar , agross@kernel.org, andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, konrad.dybcio@linaro.org, mani@kernel.org Cc: 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, Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Bjorn Helgaas , 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 References: <1697023109-23671-1-git-send-email-quic_msarkar@quicinc.com> <1697023109-23671-4-git-send-email-quic_msarkar@quicinc.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxp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d0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <1697023109-23671-4-git-send-email-quic_msarkar@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 morse.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 (morse.vger.email [0.0.0.0]); Thu, 19 Oct 2023 05:45:59 -0700 (PDT) On 11/10/2023 13:18, 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 | 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..f05c2e4 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 const 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, This is almost the same (minus MHI_EPF_USE_DMA) as sm8450. Are you sure these are not compatible? Best regards, Krzysztof