Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3258424ybb; Tue, 31 Mar 2020 01:24:04 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt2cwVIheywvAs0mLzWFB5EOFfAGmYl+GC5rOpJPQNw0Jcb4I2g3gSzGxMoTWa56AGNYNuC X-Received: by 2002:a9d:2963:: with SMTP id d90mr11443601otb.149.1585643044057; Tue, 31 Mar 2020 01:24:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585643044; cv=none; d=google.com; s=arc-20160816; b=GwIeT3HhSF/wIygymXOnpR9M4k4pRFaIevu7n7R79r6hlQB6HToMwINAnIeCA+JFjB tyaMLwPWyMOHOX2rB1+VAkJZMW6CLYzrGgiGGPmavTmRdRW6EG0aZRY9wDOh5b7htNh9 o/1eE7bBpFVX3FVXbDH3fukUUbayvruZJV0DFj8Zm58v8+A3tK1+kXOO1Gvu+gt/MQkQ C4CZWBImcjCfpn9DcKLz5pQXiKBPUab9L5pyupAMV/4swokSfhXdwR6Gc1pmwONRLhJU D/QBYXhw8ezyEdtegCaahQbF5ZTIxcPtJZH+AceOTJsMTY1Qd9c3iCEWoygOtrnaoiET DSAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=NbGGcUxOdQm3JaeFkJsumP6OjZhgP2vh2cGccIrcNEc=; b=wK6rCsA+DLPmR+33Oi3plkDA7+Lkk+kDXejQf28pNX+mSOa4DjX1vw4l4KldNyekUH 71AxPWf/n1OdhnehkbdClcQcx/ubFaGBzxBZMSPsfNwtF3YmbkfRnUbALk1YOeyreoFD AVKX53MbYUnrUxUADX9BhRza0vwN46LDamfnaKkL2tdfNryVmhGDKPCW7mqbXHYEYHzP M+MRENUa7BZLVe+KT69/C+GFhbzsntenZxg4h7X/r+ptwF/VgpiRUCrg9GJaRuQciv3S dGiGBfB0M/TOXB9dHr+X+BhC7tUZdDK0Zd2xDFEu6v+EjcVvuojcHXKxkNk+t32gbKra O8jg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m18si6882331otn.322.2020.03.31.01.23.51; Tue, 31 Mar 2020 01:24:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729958AbgCaIXe (ORCPT + 99 others); Tue, 31 Mar 2020 04:23:34 -0400 Received: from foss.arm.com ([217.140.110.172]:47290 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726528AbgCaIXe (ORCPT ); Tue, 31 Mar 2020 04:23:34 -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 6A4D530E; Tue, 31 Mar 2020 01:23:33 -0700 (PDT) Received: from e121166-lin.cambridge.arm.com (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2C58F3F71E; Tue, 31 Mar 2020 01:23:31 -0700 (PDT) Date: Tue, 31 Mar 2020 09:23:25 +0100 From: Lorenzo Pieralisi To: bjorn@helgaas.com Cc: Vidya Sagar , Bjorn Helgaas , robh+dt@kernel.org, thierry.reding@gmail.com, jonathanh@nvidia.com, Andrew Murray , kishon@ti.com, gustavo.pimentel@synopsys.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, LKML , ARM , kthota@nvidia.com, mmaddireddy@nvidia.com, sagar.tv@gmail.com Subject: Re: [PATCH V5 5/5] PCI: tegra: Add support for PCIe endpoint mode in Tegra194 Message-ID: <20200331082325.GA32028@e121166-lin.cambridge.arm.com> References: <20200330214721.GA128269@google.com> 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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 30, 2020 at 10:00:57PM -0500, Bjorn Helgaas wrote: > On Mon, Mar 30, 2020 at 9:55 PM Vidya Sagar wrote: > > > > > > > > On 3/31/2020 3:17 AM, Bjorn Helgaas wrote: > > > External email: Use caution opening links or attachments > > > > > > > > > On Tue, Mar 03, 2020 at 11:40:52PM +0530, Vidya Sagar wrote: > > >> Add support for the endpoint mode of Synopsys DesignWare core based > > >> dual mode PCIe controllers present in Tegra194 SoC. > > >> > > >> Signed-off-by: Vidya Sagar > > >> Acked-by: Thierry Reding > > >> --- > > >> V5: > > >> * Added Acked-by: Thierry Reding > > >> * Removed unwanted header file inclusion > > >> > > >> V4: > > >> * Addressed Lorenzo's review comments > > >> * Started using threaded irqs instead of kthreads > > >> > > >> V3: > > >> * Addressed Thierry's review comments > > >> > > >> V2: > > >> * Addressed Bjorn's review comments > > >> * Made changes as part of addressing review comments for other patches > > >> > > >> drivers/pci/controller/dwc/Kconfig | 30 +- > > >> drivers/pci/controller/dwc/pcie-tegra194.c | 679 ++++++++++++++++++++- > > >> 2 files changed, 691 insertions(+), 18 deletions(-) > > >> > > >> diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig > > >> index 0830dfcfa43a..169cde58dd92 100644 > > >> --- a/drivers/pci/controller/dwc/Kconfig > > >> +++ b/drivers/pci/controller/dwc/Kconfig > > >> @@ -248,14 +248,38 @@ config PCI_MESON > > >> implement the driver. > > >> > > >> config PCIE_TEGRA194 > > >> - tristate "NVIDIA Tegra194 (and later) PCIe controller" > > >> + tristate > > >> + > > >> +config PCIE_TEGRA194_HOST > > >> + tristate "NVIDIA Tegra194 (and later) PCIe controller - Host Mode" > > >> depends on ARCH_TEGRA_194_SOC || COMPILE_TEST > > >> depends on PCI_MSI_IRQ_DOMAIN > > >> select PCIE_DW_HOST > > >> select PHY_TEGRA194_P2U > > >> + select PCIE_TEGRA194 > > >> + default y > > > > > > Sorry I missed this before, but why is this "default y"? From > > > Documentation/kbuild/kconfig-language.rst: > > > > > > The default value deliberately defaults to 'n' in order to avoid > > > bloating the build. With few exceptions, new config options should > > > not change this. The intent is for "make oldconfig" to add as little > > > as possible to the config from release to release. > > > > > > I do see that several other things in other drivers/pci/ Kconfig files > > > are also "default y", and we should probably change some of them. But > > > I don't want to add even more unless there's a good reason. > > > > > > I'm not looking for more reactions like these: > > > > > > https://lore.kernel.org/r/CAHk-=wiZ24JuVehJ5sEC0UG1Gk2nvB363wO02RRsR1oEht6R9Q@mail.gmail.com > > > https://lore.kernel.org/r/CA+55aFzPpuHU1Nqd595SEQS=F+kXMzPs0Rba9FUgTodGxmXsgg@mail.gmail.com > > > > > > Can you please update this patch to either remove the "default y" or > > > add the rationale for keeping it? > > I'm fine with removing 'default y' line. > > Should I send a patch only with this change? > > I think it's probably just as easy for Lorenzo to delete that line on > his branch. If not, I'll cherry-pick the patches on that branch and > do it locally. Done, pushed out. It is a guideline that it is worth keeping in mind while I review the code, sorry for missing it. Lorenzo