Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp700250rdb; Fri, 2 Feb 2024 00:51:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHYJkJrqzCNuCv/dMVkMFgWxvv74Xr44a2HJoaoC4a7f1FOqHt0M4dhNuo6DuWRbW6yzskg X-Received: by 2002:a17:902:d315:b0:1d7:48ce:2046 with SMTP id b21-20020a170902d31500b001d748ce2046mr1487993plc.29.1706863896776; Fri, 02 Feb 2024 00:51:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706863896; cv=pass; d=google.com; s=arc-20160816; b=XKVonrwJVg6FfLQmlmt1/3laQzm4rUHKV3PYwqyhUqyhL6zhd86kz3S3ZN5kLQ4Lsa WfoOzihS84f5wyTA0dQgL/xNyPfdugth9nRm26UNoYZfxnxYWoO9vJER3KQkeuNTtUI2 eKFP57mk2EUP1XVDGnIn/ITHUIfkD3rQMH0zYyDrZ1YW3qUcukLuxGJME+kP3ioO5MJK D8ioiTu2qxiJ+sPx1B2z/9bPJgl+YGa9uTGT6CmOfckrBBusCdQg797XPLxL7xzbqUKx HG3Mk49o6Y7l5vc0dQO7pZ2EmcjD8p0yewNfbWOnqb8UDoq4tcourVrXuBycerO4spqp yFHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=ex8uFXUd/1VgYSVosIZ1+T7rhV/9CW1dKZTq90qxWzc=; fh=usUIWj9gjzswSuyrOXSPjw0QpdTr/8iWgryn+1CpW04=; b=DknWKnIdPO8X4y7HmI/q1AwxhNMlmQH1lWzPRmaytPjuDigTvHFtSnjzkWRuBPU2KS 3F+5SFO/Hin4YExlHbRNPigt+Kin2+O/6SMzoQ4oex+O7nzrJZhESEfZy227/FdMbRhJ f89qAjCnwfViMi0wxWuYikfHB3d3xedhgdbXXx0BwLwiAdYdwTm9twCJkYMXBbXuswwA jv60w7xjcjBrNUzlG1IDtBxiMxM27W6rLeCKhkGQhU6j7yvr1sW0gcHwIyE5UpsIO4h8 g/r41VKYKsYe9ktV+E6scWnGzieAuiKcI73u7+SsD8cL9Gu/O3Zkt250AEwB/Y2vVEj/ 2ABw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="c/Wz4n2K"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-49498-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49498-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCUdPzx+ljuh1xSu1G9ZAPqeLgnQLApPTSvZyouscd2x3f0ti13aCLwN2C9HrzuXBQiEUmXDoWmPQYgas4EEG3y1X3/3IFs8YC5vQzMFeQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h12-20020a170902748c00b001d963d963a9si1347456pll.2.2024.02.02.00.51.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 00:51:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49498-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="c/Wz4n2K"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-49498-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49498-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C9AFD28D066 for ; Fri, 2 Feb 2024 08:48:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4ED14748E; Fri, 2 Feb 2024 08:44:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="c/Wz4n2K" Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 813415FDB1 for ; Fri, 2 Feb 2024 08:44:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706863468; cv=none; b=K99c6IoiLtkuKwCYnGUzt304LwFsgYNzFpId+Pr2ryzUQKIqr+AkxOJJ5GLTBxJ0dnr7DHo3VVQjWsPK43JsSxhrudnODP2gkqLVNhWasmqenThYJMm/yH9S7hRrWWzTdD7lFub3m4/hgS67GneHIjwm9trfQtlSu0vMaJSb/t8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706863468; c=relaxed/simple; bh=78KkgfgjtX7OYeDRYtWnf1tTywDhE3mqsWiyg5uggiA=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=A9ToxNRpcIXinTltOfClrc88++M7wJ1LShDEcVvwAnIYJgSnptk6zVZMl+aR7zDt17+HSUrmFVfUbtbd//xMT4tvhWm8xo5M7AJFcrrLp/YDHpckq1Y6hVDU8OL7bPINyEFB2Ozb/DC/cPmNmmKJfVO59Bn1sUACkhya3hTe4hE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=c/Wz4n2K; arc=none smtp.client-ip=209.85.221.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-3394ca0c874so1286835f8f.2 for ; Fri, 02 Feb 2024 00:44:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706863465; x=1707468265; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=ex8uFXUd/1VgYSVosIZ1+T7rhV/9CW1dKZTq90qxWzc=; b=c/Wz4n2K855F07tKvYiG4OJkxJKkPVbtQxZ3Hmbe5nbltkszeu1t1fPaKAbqtSHBsJ TH/wLukHRE2o8Kdd+zpWaEzQYySTQoIttFjSXjkCtf6WufFOSPJOtIRKnDefQ8ekr+rC 4Gp0vfAfFApNwBCWEjh88XKxRULKotDftzQN0ViSFajRyVAwuatuM+Oqh3Xc6jeOXoax NeMSfErJnIA3/IHW5DyQPIioWqAcXpTAh/UvnsqEfwdGyeQpsgQkjTCMjkB6ucR5d3R+ ghpNVMdZo7QoinWsZH+wE7TRxugZeONWilUXhgVIjg2rUGo+Ac1nMx9EJ+r7tBYtJO3P 0UiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706863465; x=1707468265; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=ex8uFXUd/1VgYSVosIZ1+T7rhV/9CW1dKZTq90qxWzc=; b=td6BDOd6dyoPVcyIFO7vpnnpcQwF0M4Ti/iX2DdtNwXWCEa4y4FU3BmU1kB8F/MNaY wfUEnjSov7d9fWvVROpOe7FgN1cVeVh4n9+qU0wqm/EJM8nm7OJV+VuWZc+5zm/aTJoL a7r+clH6qBde315Al5BRY/0KpAM36/dvryp3Gm0xNRC20fPzLGZ5ZGTB6dOSZ0MPvYxz VRBfWY5UspwPMZeXq//uRyAQwzy6GaSwtgdz2Qs6SbZ7Xb3jhifM1UL7ukpRsF1UmRw7 K2wVfPI3+xrHUSWhorLh0x+/M2PLVvkDK3EHNJXj7tnsnzooRRgH2ME5m4BPa7Jv5DJw ZcyA== X-Gm-Message-State: AOJu0YzKb8xPt2jiPZ3l9IknFo5aPgz9/5YzzuD2DmD4kjwD/2FHu/Of olRgOwtgZMGFulY+qxx8CSSizDMmeDfDKRYEED9Bp0eZ0TnM2/cmq922S3lT6BQ= X-Received: by 2002:a5d:5652:0:b0:33b:1b0b:9356 with SMTP id j18-20020a5d5652000000b0033b1b0b9356mr905914wrw.56.1706863464631; Fri, 02 Feb 2024 00:44:24 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVlZc2Fy1a/R58ufM6zRR33hyvLSkb5W6o2FlxmOhNBB2f/HJv3Eoxcd955c8Dfap7wOc6jcIkUo+5mXAsMaN2cVv57QKQyDrcviK8UqtwfsB5FMU4D8zaNlqV5Gkhj7+FS487Ijl4xq4gFmO1CPwKyoWiC9gapICgkR9jwVnv94hYthVE0B76nM1aRr6Mnf0/BfxZHjvDTLrz+sO5VwXRWk/S0RKr7dNLUYB6KcAPnnZdKR9dVJBPtbt0bE4GlFWhilup0cTOzpBqWSROGd/HvqUxRv2QPIMeC5353kItmELtp8bZiKt2Wbhtefahd2yOKP8/F/0OvJad0yvGaft2rOS+CBamF1nUQXpuDlg== Received: from ?IPV6:2a01:e0a:982:cbb0:560a:f70f:7627:2c48? ([2a01:e0a:982:cbb0:560a:f70f:7627:2c48]) by smtp.gmail.com with ESMTPSA id n14-20020a5d660e000000b0033b1cb8135asm1422167wru.88.2024.02.02.00.44.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Feb 2024 00:44:24 -0800 (PST) Message-ID: <0becd323-6104-4c61-80ce-935c55f9a66f@linaro.org> Date: Fri, 2 Feb 2024 09:44:23 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: neil.armstrong@linaro.org Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH v2 2/2] PCI: qcom: Add X1E80100 PCIe support Content-Language: en-US, fr To: Abel Vesa , Konrad Dybcio Cc: Bjorn Andersson , Manivannan Sadhasivam , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240129-x1e80100-pci-v2-0-a466d10685b6@linaro.org> <20240129-x1e80100-pci-v2-2-a466d10685b6@linaro.org> <30360d96-4513-40c4-9646-e3ae09121fa7@linaro.org> Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sf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iB/sGbkQ6itMrAIfn M7IbRuiSZS1unlySUVYu3SD6YBYnNi3G5EpbwfBNuT3H8//rVvtOFK4OD8cRYkxXRQmTvqa3 3eDIHu/zr1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro Developer Services In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 02/02/2024 09:41, Abel Vesa wrote: > On 24-02-01 20:20:40, Konrad Dybcio wrote: >> On 29.01.2024 12:10, Abel Vesa wrote: >>> Add the compatible and the driver data for X1E80100. >>> >>> Signed-off-by: Abel Vesa >>> --- >>> drivers/pci/controller/dwc/pcie-qcom.c | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c >>> index 10f2d0bb86be..2a6000e457bc 100644 >>> --- a/drivers/pci/controller/dwc/pcie-qcom.c >>> +++ b/drivers/pci/controller/dwc/pcie-qcom.c >>> @@ -1642,6 +1642,7 @@ static const struct of_device_id qcom_pcie_match[] = { >>> { .compatible = "qcom,pcie-sm8450-pcie0", .data = &cfg_1_9_0 }, >>> { .compatible = "qcom,pcie-sm8450-pcie1", .data = &cfg_1_9_0 }, >>> { .compatible = "qcom,pcie-sm8550", .data = &cfg_1_9_0 }, >>> + { .compatible = "qcom,pcie-x1e80100", .data = &cfg_1_9_0 }, >> >> I swear I'm not delaying everything related to x1 on purpose.. >> > > No worries. > >> But.. >> >> Would a "qcom,pcie-v1.9.0" generic match string be a good idea? > > Sure. So that means this would be fallback compatible for all the following platforms: > > - sa8540p > - sa8775p > - sc7280 > - sc8180x > - sc8280xp > - sdx55 > - sm8150 > - sm8250 > - sm8350 > - sm8450-pcie0 > - sm8450-pcie1 > - sm8550 > - x1e80100 > > Will prepare a patchset. Honestly I don't know from where comes the 1_9_0 here, I didn't find a match... none of the IP version matches. So I consider this "1_9_0" is a software implementation, not a proper IP version so I'm against using this. But, using close cousins as fallback that are known to share 99% of IP design is ok to me, this is why I used the sm8550 as fallback because the IP *behaves* like the one in sm8550. Neil > >> >> Konrad >