Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1481103pxb; Fri, 22 Oct 2021 01:37:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMznkeCipXatVraT96qcts6ttD0dJzLVL/2mzAvCwj5SkQNeqLqMJcPHKvlN3OWfb2qxD0 X-Received: by 2002:a17:906:8a7b:: with SMTP id hy27mr7138113ejc.308.1634891866941; Fri, 22 Oct 2021 01:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634891866; cv=none; d=google.com; s=arc-20160816; b=E/x2wL+A5inYr+wEFcjLEFudSzOhAiMYKdrmzG/gsmhBkrR/AyUDWrIF3s3Tcbs9Fx Pha2e9qNSWpW7ckgye00JeXIEAbQ/BtNP1Gc+cgGywE677S4Sxvl8EKj+CeME9Hetoar TbtVlr+2COcxYAwSzDCc5+bKTOBy/1fdOY2QhXvVWmqf+/XEetet3ijUAfcfHeqyoQUG RUDjvVgylVNnf+giBi9obHVxvKvkIQmOyDOJWXoerbV1asUEYf2GdC9CicN29Ys/iYna 4/IMHIH2PLR87xGN9GOBZIoH80jbMH4m9IlkvfthEaJz4MlDkorR7V0JB4ms8Jw6KG62 NFqA== 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=9lbU2oFGUAd+A+yNt9TPMOD9qn5aJfgcxwr0mQax5F4=; b=aXzdCRa87I7U6xbwohciegmmTKHt25dRwVRKw0n268dcWwxWtmFkun9F6/dopsLRGb kTATeSFNOmBmag38P8nWMprqRQpExuAC5LLAmEG58pSBfPN0PgO8sbHHpUMArVT9hzOH XPpGYzxKrLBzP9GDeEK6u1C17iWPH9apWnfPHRFlZsTx7SQXfdzGRx6igwGF6CPq/zyp /y3wv8KDZHbnJu7H+QcqS0ag0mAhzwITL+vF5MSVov5iBVRNjvUS2PVVwUa/8C6u8XFF WjtLUbSuO1VjkhdYmjPRxVDGiI4fvj0QZ9ZpcT1d1kTFOH6bxXIIY1CmJa5uKgi+ZsGa LXcQ== 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 rp18si10084709ejb.316.2021.10.22.01.37.23; Fri, 22 Oct 2021 01:37:46 -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 S232314AbhJVIhU (ORCPT + 99 others); Fri, 22 Oct 2021 04:37:20 -0400 Received: from foss.arm.com ([217.140.110.172]:51392 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231984AbhJVIhU (ORCPT ); Fri, 22 Oct 2021 04:37:20 -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 75708ED1; Fri, 22 Oct 2021 01:35:02 -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 AB6EB3F70D; Fri, 22 Oct 2021 01:35:00 -0700 (PDT) Date: Fri, 22 Oct 2021 09:34:55 +0100 From: Lorenzo Pieralisi To: Sergio Paracuellos , robh+dt@kernel.org Cc: Bjorn Helgaas , linux-pci , "open list:MIPS" , linux-kernel , John Crispin , NeilBrown , Greg KH , linux-staging@lists.linux.dev, Matthias Brugger , Thomas Bogendoerfer , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Bjorn Helgaas Subject: Re: [PATCH v3 0/3] PCI: mt7621: Add MediaTek MT7621 PCIe host controller driver Message-ID: <20211022083455.GA20345@lpieralisi> References: <20211021181145.GA2708516@bhelgaas> 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 Thu, Oct 21, 2021 at 09:23:35PM +0200, Sergio Paracuellos wrote: > On Thu, Oct 21, 2021 at 8:11 PM Bjorn Helgaas wrote: > > > > On Thu, Oct 21, 2021 at 07:27:21PM +0200, Sergio Paracuellos wrote: > > > On Thu, Oct 21, 2021 at 5:52 PM Bjorn Helgaas wrote: > > > > Since this is a PCIe (not conventional PCI) controller, I vote for > > > > renaming these from: > > > > > > > > PCI_MT7621 > > > > Documentation/devicetree/bindings/pci/mediatek,mt7621-pci.yaml > > > > drivers/pci/controller/pci-mt7621.c > > > > > > > > to: > > > > > > > > PCIE_MT7621 > > > > Documentation/devicetree/bindings/pci/mediatek,mt7621-pcie.yaml > > > > drivers/pci/controller/pcie-mt7621.c > > > > > > > > We have a mix of these, with many of the early PCIe drivers being > > > > named "pci", but I think that was my mistake and there's no reason to > > > > continue it. > > > > > > I see. > > > > > > > > > > > I can do this locally unless somebody objects. > > > > > > I have no problem at all. Only one question. Do you mean to change > > > compatible string also, or only the name of the file? Let me know if I > > > have to do anything. > > > > I didn't change the compatible string, to avoid a DT incompatibility. > > But I *did* change the Kconfig symbol to PCIE_MT7621, which could > > require changes to out-of-tree .configs. I'm open to suggestions > > either way for both things. > > IMHO, I do think we should not worry about out-of-tree stuff at all. For Kconfig I tend to agree. For DT I see some "bindings" in the staging tree are being deleted and published as official DT bindings with this patchset but I believe we still have to keep the compatible string backward compatibility regardless because there may be firmware out there using it. Rob, what's the standard policy that should be used in this case ? Thanks, Lorenzo > If the correct way to define the Kconfig symbol or the compatible > string is to change them, just do that. MT7621 SoC is extensively used > by openWRT community. As far as I have seen until now, the way of > doing things there is to take the latest long term kernel (now they > are using 5.4 as stable and 5.10 as testing kernel), apply a bunch of > patches they have and do a complete build of both kernel, device tree > and rootfs. So I guess it is not a big problem if we also change > compatible string since when an update is performed for a device all > of the stuff is just replaced. Maybe I am wrong and John has a > different opinion... John, any comments on this? > > Best regards, > Sergio Paracuellos