Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp731533rdb; Fri, 2 Feb 2024 02:11:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFvaOPWdKo5tPMGdXDyXz5MWHIqn9r+7Jl/ZsS8jDnscUqJ425+1DFr2VgoYE/eKOraAGT+ X-Received: by 2002:a05:6871:5288:b0:214:e52c:ae30 with SMTP id hu8-20020a056871528800b00214e52cae30mr1599012oac.54.1706868691077; Fri, 02 Feb 2024 02:11:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706868691; cv=pass; d=google.com; s=arc-20160816; b=0nw73MLdFNejZpi2D2O3yo2ig/CVJxlbtX9rP9P6RuO87XkrG2RlEdTy2h/J3dt3oM VFo4pDHvGMvbCYXzfF3pOAvMt/Hidcm8sS3Qcvv6qCJhzx7DkrXARz/ld7ZdfLtuvyvi 0yEPFN7TQW0pCysDEvpT0bMElXh+zmm0tDZOnawX5UbcFMKnRXDQ3aJZnOet9ur9J3IL b3vhQbsd5kTi8q+0fIWs3hVLEESMST2gfw7D6JZaaN1LH1eKaOlxv6KqJ1DM2TFLgdSE MNzdxpC414vw39S4cfKRUWbXLmQoRslwmmmbTyKsownRdNrkTaZ+5+AlS3rlwP9iYplv CgSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KoEIyCsLXaY7M3crxGURKXz5Fgd745HNqfUsmEwe3DI=; fh=/Yfv2nvJ9g9TZJ6SYpD54w2LnvLFAAQZtafEEGl68tY=; b=AoC+H4OstxF1NEHpmrXPIKyF7ui6FFQ3txzcy3i/fikw6mY9+6B+vvTLt3Cqt1qomR rvbFk9CP5nvmFRm+xr4FYR333Inu4hpP0kbDghmDcRKMo44muAdzgtzZyqNGookCJV18 XouYHgn1BX4i2PLQoAn7IlZgbCpzCIIH2Uycn7esv2UmodOnwZfCvs+moN7/ewWOaMpf mghov0uGiIMKq48UTn6RNFRKaALWa24HwNu9csi8PqGpOqc9fTcwgb77tM6F1TDUf/Oc yLaqOBVk8XqhED4zpBOjlAydzV5jLQ6luhNI4exPxyV0Q1SyexBNvEJF4QkuFGJpjpup ZbTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=foD40yoc; 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-49582-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49582-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; AJvYcCXADuxe4Y5TC5ACC3lkDYRYTlHOUXzEloRHNazBd5ulvqZcYvU81nBbludw9sl9YyXgMBXbyO/GavKMzyKpW/KjpcWQwtFOu6FydRU6Fw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p35-20020a634f63000000b005d8bb44b207si1311921pgl.559.2024.02.02.02.11.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 02:11:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49582-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=foD40yoc; 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-49582-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49582-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C27F4B31813 for ; Fri, 2 Feb 2024 09:32:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8E6F77637; Fri, 2 Feb 2024 09:31:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="foD40yoc" Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 4B9505FF1C for ; Fri, 2 Feb 2024 09:31:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706866316; cv=none; b=GNmFlaRIF1SfgBqAYZfe0AZJ/hG0X7VyiZZ5Ypvlhz/3voj2wnXgZwtj3hRQsfgCpLAalIlHnbqVgwAo7igiXeJFD2y5lbLjKchIe4O73Q2ckwHUYK053kskegTlBI8oDlr5ltQmHC40DW5/I/4SzGRa43eZOZb9FD8D5vmJgwg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706866316; c=relaxed/simple; bh=qemFVdz8drhJlZ2QFPkmnp00qePRuil7WJFA99tBSIE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Zne6iqX8P6qdfNcTEGLMIke4a6xi76jEEhRcWzOGgmmNdV+EcTNA8sXY1tTnz+E7r2JPT6GR1lcXINJv3OzQU71NkYuBkTXWUfxBSLhed/Uz+PuYlfT7rswviEwBcG2Cbew/N22GHGwmhy1JP3BrPFXoIv6OV6f/CnWAvNA1PtM= 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=foD40yoc; arc=none smtp.client-ip=209.85.218.41 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-ej1-f41.google.com with SMTP id a640c23a62f3a-a370328e8b8so59691366b.3 for ; Fri, 02 Feb 2024 01:31:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706866312; x=1707471112; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=KoEIyCsLXaY7M3crxGURKXz5Fgd745HNqfUsmEwe3DI=; b=foD40yocJ1RMuM40SWqBNUe6OY51W1V72Ll2Y/y/X3fHz/Zq+MJBC8JGA5GD9rwnp9 Sqcrkkc2D79Iq44iCNjB1ILFhfhwJUXRAuFCESvi/3hPFGX3ba16gBZ8q0bS8mPBq3PO DQs+kN1RbYmMU6xaUlXjsXxlHihBxJisn3ldhsYRMnHbrz3nvoOfIJ9dE/XtBbxuBrfp rS7fEqvWnjohQm75H3MrAPrYhi29mw8wYp0G2WsiAHVtn5apzORjxBJob7OdK8+PPi/3 tSU10EwLldceC6rQ9T5Pb+xxOmAdjxctfah2B+uHILCwFm503PXHTzRfM+J/LBYfYQQL xbbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706866312; x=1707471112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KoEIyCsLXaY7M3crxGURKXz5Fgd745HNqfUsmEwe3DI=; b=s9Ikom8EFExHSsmHkC1jwPi9Rar/OSsmMyLaib1s6dOvasqSwtbMKQ51Y4O9gliaBZ 6GtGNt4PHdpHDOLyiXiVRWbSVufdu/HNCEHY6X4aBXpLbQdNvLQmGI+/3om8dFH5YqbN 2iDYpi//LZ7sZuSgZiAoIQ/oznzTOc2y7IpHSYuigZK18McUxmF1RF6jT0s4WDGzwhKS FbU8ktWyofZMRuh34YQL2KjLfqIujMxMjGpNOGF6ZltlT00x75I5Rdu7lnMscofl2ZI3 24fN7awpOYzRyk5kCzDrRq7k0PgvGXN4+YDerCQZto58KRQ7J+yRt/xOmdMzXP84/Oj5 Pk1Q== X-Gm-Message-State: AOJu0YxPRUm03D1FGzkhY/3eHaB6M2S2xiR4kIKdD5NV/Cfj8i3nKm+V T7XdDRz3GAl+mc5TalY9huBr5pYer4X39OZcMGR3yuH3ZkD/f35TDB1CanTdRNY= X-Received: by 2002:a17:906:a1d6:b0:a36:3345:be88 with SMTP id bx22-20020a170906a1d600b00a363345be88mr1140545ejb.30.1706866312409; Fri, 02 Feb 2024 01:31:52 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCX9V0zc+gDtDPzFvLCjzRe+iabJaGddwMMexlbprkGRefzc925muTOFNriF1N9L3/5Mf/JIkTuXJZOhm5hDDI7Dl+LLkoma5He0bVoUrUsL0LsmR5Gr1m9E7J4VlWvTx/6e1gljMB2q9eBxIks5lMa524hAGeQ5tcCGmlvndoYorD9Uz5wKMn3ErNa5KRoQlxJRbsitWIAwxU6RMRusSFW11nscwerb42R7/eglRu4Nk+bDeu1CVG9JctRqD4TftQwca4eKYnp8FrwbRuej0f+jkPtI9fWjklzNsmmRi7xP2794DQiAg2w= Received: from linaro.org ([62.231.97.49]) by smtp.gmail.com with ESMTPSA id sd25-20020a170906ce3900b00a359558648esm696796ejb.24.2024.02.02.01.31.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 01:31:52 -0800 (PST) Date: Fri, 2 Feb 2024 11:31:50 +0200 From: Abel Vesa To: Manivannan Sadhasivam Cc: Konrad Dybcio , Bjorn Andersson , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] PCI: qcom: Add X1E80100 PCIe support Message-ID: References: <20240129-x1e80100-pci-v2-0-a466d10685b6@linaro.org> <20240129-x1e80100-pci-v2-2-a466d10685b6@linaro.org> <30360d96-4513-40c4-9646-e3ae09121fa7@linaro.org> <20240202084806.GF2961@thinkpad> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On 24-02-02 10:55:28, Abel Vesa wrote: > On 24-02-02 14:18:06, Manivannan Sadhasivam wrote: > > On Fri, Feb 02, 2024 at 10:41:03AM +0200, 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. > > > > > > > NO. Fallback should be based on the base SoC for this platform. > > Right, so since the SM8250 is the one that has the core version 1.9.0, > should we just the sm8550 compatible as fallback for all other ones. > > Yes, I know that there is SM8150, which has core version 1.5.0, but it > is still 1.9.0 compatible. > > Or maybe we should rename the config to 1_5_0 and have the sm8150 > compatible as fallback for all these platforms. > Actually no, that's a bad idea. I would break DT backwards compatibility. I'll just drop the compatible from driver and add fallback in DT for X1E80100. > > > > - Mani > > > > -- > > மணிவண்ணன் சதாசிவம்