Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4603345pxj; Tue, 22 Jun 2021 04:08:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVljxM4ZoNF0zVBYOjVTvtCalfLWh7DuLCOgBiatMKE9sc2T0mwlJgdOD2Why4Emvhf1W/ X-Received: by 2002:a05:6402:759:: with SMTP id p25mr4186426edy.146.1624360129995; Tue, 22 Jun 2021 04:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624360129; cv=none; d=google.com; s=arc-20160816; b=l1rvzqGN7SqCkbSC3tKlxfhlKuBpaOSnyyX37Pj0gxnUgNfsfuIFmxli+0v6LB44Ml VdbV8DJQ+/JgdN19huibQq7cIj5a+c5auX4k5SUD8GgjxMO+71GxhWAs7fuIstXpZyPy Zon5LziSgl3OTh9pC4glQLDfZbxnhY7gzlTUFAaOZp4/nlNHfD/dNtSLu8Y6/I8d4Zx4 mk3LE06ow9AywqRSU0AJVuHuia5GYk0/BIFid1m1sdu/IzjCyCdkNL3Ekqd1hALJ0hLe CEa4ST4yMetSBIdRIZ6C/2us2MrLr/CsNYHZpTaAuA3dPGGjdsJ/twZEqqnzXsjjUgsJ 2V9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=3xzZh+Pb5y2hwVAPOqDniMVZ6MbLPdXphp2r1veOIao=; b=WGzQEpky323LzcCSUwxScmWTGQoSJcYofeEPQrs2nAMRD8+iCdlxhDtgKmG/supJ1m riF+WOmCmZhlhqegb68IPzPN5fLkAxJgbnjsOxo/Rp0Bq8H1yLShJ+8wnsatm3SKchfk YfjdHOB1HXC2x7JKj+zqgn45AsYGjQf90kaTbNtAD1XpfPdx9wYSgBjzGTDAulbwiIl9 bzob586jpunkD32O70Z7pB2tRTV4T5qzIuXN4EPDoGkHb94D5juyNIiEJnWk82l3UdYa eGes6KwmKz9aZb/7MPFNEKB+bHsTnQAZI8Bjds5/FwxWvtOoQYK9OO8XOIla+LZfd+ki 3fcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hw7si134405ejc.405.2021.06.22.04.08.27; Tue, 22 Jun 2021 04:08:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229954AbhFVLHk (ORCPT + 99 others); Tue, 22 Jun 2021 07:07:40 -0400 Received: from foss.arm.com ([217.140.110.172]:47060 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229682AbhFVLHh (ORCPT ); Tue, 22 Jun 2021 07:07:37 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0069231B; Tue, 22 Jun 2021 04:05:21 -0700 (PDT) Received: from lpieralisi (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5302E3F694; Tue, 22 Jun 2021 04:05:19 -0700 (PDT) Date: Tue, 22 Jun 2021 12:05:17 +0100 From: Lorenzo Pieralisi To: Matthias Brugger Cc: Chen-Yu Tsai , Jianjun Wang , Ryder Lee , Bjorn Helgaas , Rob Herring , linux-pci@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Randy Wu , youlin.pei@mediatek.com Subject: Re: [PATCH 1/2] dt-bindings: PCI: mediatek-gen3: Add support for MT8195 Message-ID: <20210622110517.GB24565@lpieralisi> References: <20210601024408.24485-1-jianjun.wang@mediatek.com> <20210601024408.24485-2-jianjun.wang@mediatek.com> <1622526594.9054.6.camel@mhfsdcap03> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 02, 2021 at 01:33:07PM +0200, Matthias Brugger wrote: > > > On 01/06/2021 08:07, Chen-Yu Tsai wrote: > > Hi, > > > > On Tue, Jun 1, 2021 at 1:50 PM Jianjun Wang wrote: > >> > >> On Tue, 2021-06-01 at 11:53 +0800, Chen-Yu Tsai wrote: > >>> Hi, > >>> > >>> On Tue, Jun 1, 2021 at 10:50 AM Jianjun Wang wrote: > >>>> > >>>> MT8195 is an ARM platform SoC which has the same PCIe IP with MT8192. > >>> > >>> Based on what I'm seeing internally, there seems to be some inconsistency > >>> across the MediaTek platform on whether new compatible strings should be > >>> introduced for "fully compatible" IP blocks. > >>> > >>> If this hardware block in MT8195 is "the same" as the one in MT8192, do we > >>> really need the new compatible string? Are there any concerns? > >> > >> Hi Chen-Yu, > >> > >> It's ok to reuse the compatible string with MT8192, but I think this > >> will be easier to find which platforms this driver is compatible with, > >> especially when we have more and more platforms in the future. > > > > If it's just for informational purposes, then having the MT8192 compatible > > as a fallback would work, and we wouldn't need to make changes to the driver. > > This works better especially if we have to support multiple operating systems > > that use device tree. > > > > So we would want > > > > "mediatek,mt8195-pcie", "mediatek,mt8192-pcie" > > > > and > > > > "mediatek,mt8192-pcie" > > > > be the valid options. > > > > Personally I'm not seeing enough value to justify adding the compatible string > > just for informational purposes though. One could easily discern which hardware > > is used by looking at the device tree. > > > > I agree, if no differences between the two chips are known, adding a > binding withe new compatible and a fallback is a good thing. If we > later on realize that mt8195 PCI block has differences, we can add the > matching to the driver. So this series can be dropped, right ? Thanks, Lorenzo > Regards, > Matthias > > > > > Regards > > ChenYu > > > > > >> Thanks. > >>> > >>> > >>> Thanks > >>> ChenYu > >>> > >>> > >>>> Signed-off-by: Jianjun Wang > >>>> --- > >>>> Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml | 4 +++- > >>>> 1 file changed, 3 insertions(+), 1 deletion(-) > >>>> > >>>> diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml > >>>> index e7b1f9892da4..d5e4a3e63d97 100644 > >>>> --- a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml > >>>> +++ b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml > >>>> @@ -48,7 +48,9 @@ allOf: > >>>> > >>>> properties: > >>>> compatible: > >>>> - const: mediatek,mt8192-pcie > >>>> + oneOf: > >>>> + - const: mediatek,mt8192-pcie > >>>> + - const: mediatek,mt8195-pcie > >>>> > >>>> reg: > >>>> maxItems: 1 > >>>> -- > >>>> 2.18.0 > >>>> _______________________________________________ > >>>> Linux-mediatek mailing list > >>>> Linux-mediatek@lists.infradead.org > >>>> http://lists.infradead.org/mailman/listinfo/linux-mediatek > >>