Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6096342ybv; Wed, 12 Feb 2020 06:02:07 -0800 (PST) X-Google-Smtp-Source: APXvYqyAqKlaVZVnogKnHwGeAt7G/LFMBYZo4paWvU3f1mTlL3EbtebkkJI66r2k+ikcmmK6aJBR X-Received: by 2002:aca:d903:: with SMTP id q3mr6296208oig.12.1581516127009; Wed, 12 Feb 2020 06:02:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581516127; cv=none; d=google.com; s=arc-20160816; b=W5kE+t7AIufxB4E51p3qoQrK4zoJAjnPBv99/+jHW6BpBvAgt26ROBFZdyb8WApqHY TIANHuymtA/8bVvMqkVtuQEFWD+iilZfY9qSDSOzXowsiFS33njuDppDwteOzlK/W+cs +I/hBwf6NY+KG57cKuMySwF2WtXkctE1z2+SNxGnmTwyEBgovrwYe5RFyV+A89FuUwJJ W03CDRS403JXLDRvxXtmZiIPW7ZiB6tRBGPEF+NPkLIhMHiIUMXoDVV441WiLQ1vqamp Vbn4XK5kSAD4xmyJaW3LQqc8BuBCtADDMytQ8YgGBFP/FLJa7R8R9W7gjuMtNAIOFdq0 TzEw== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=gHjSHXkBl+MY2TJkHPz/haZ5ovSwCugOb5Er5+qaSvg=; b=KrLfDkzzEipgawnjQNBzKCMVeYVJQda1uvL6N7IRh09cGmZamN7GlhY4iKVTJx5CuE dv/v9t61YgStbwI+Y8LEeSwcFfUoWbnNKAeCYEN1ybWZdM0KjotSd25V+9ojtoMuQNzw URoOLimoiY1Xag7yL5ZXQE0fugHmQl7mkSpzk7bS/QFt5SpBjVZTDF7ZSg3+IKVqithS nDJH6TWF7sqiyL4b5cTlJUXUYyeBZpmu8JAavWYyaIL48SICiig0yxUxl2YTmcw8bAIh 9nx4KYTbzbOYhuJANn0I30qJm9MmYM70HSjjziHdUXNHKRRAhLscMFNZm8cSXX9C5mB4 mW0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EPX57e7K; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y71si3289959oia.82.2020.02.12.06.01.53; Wed, 12 Feb 2020 06:02:06 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=EPX57e7K; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728126AbgBLOBa (ORCPT + 99 others); Wed, 12 Feb 2020 09:01:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:53054 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725887AbgBLOBa (ORCPT ); Wed, 12 Feb 2020 09:01:30 -0500 Received: from localhost (173-25-83-245.client.mchsi.com [173.25.83.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EEEDB20658; Wed, 12 Feb 2020 14:01:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581516089; bh=k9etYqQgRrkh7cyiZwIyrLs0t114fOpffvtkOo61KWY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=EPX57e7K2CocHRjleSrYsOC4jcMI5oxr+HevHew+S+JLsugZIC+yBlaB/zNAvFapK UZKM6UR6vbTNWupREPcs7S6z357GJD+mZV4emsonCxc74ssTH9I3BK6QzchZrhXNXT P5IrxlIh5dph6VfbTvbebxGRjB9m1vimurMg3Zds= Date: Wed, 12 Feb 2020 08:01:28 -0600 From: Bjorn Helgaas To: Lad Prabhakar Cc: Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , Kishon Vijay Abraham I , Lorenzo Pieralisi , Arnd Bergmann , Greg Kroah-Hartman , Jingoo Han , Gustavo Pimentel , Marek Vasut , Yoshihiro Shimoda , Shawn Lin , Heiko Stuebner , Andrew Murray , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Lad Prabhakar Subject: Re: [PATCH v4 1/6] PCI: rcar: Preparation for adding endpoint support Message-ID: <20200212140127.GA127398@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200208183641.6674-2-prabhakar.mahadev-lad.rj@bp.renesas.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To make the changelog from "git log --oneline" read nicely, the subject should begin with a verb, e.g., PCI: rcar: Move shareable code to a common file On Sat, Feb 08, 2020 at 06:36:36PM +0000, Lad Prabhakar wrote: > Prepare for adding endpoint support to rcar controller, there are no > functional changes with this patch, a common file is created so that > it can be shared with endpoint driver. This commit log doesn't tell us what this patch does. "Prepare" conveys no real information. It's a giant patch and it's difficult to verify that there's no functional change. I *think* what you did was move most of the #defines from pcie-rcar.c to pcie-rcar.h and most of the code from pcie-rcar.c to pcie-rcar-host.c. And in both case, these were strict *moves* without any changes. If that's the case, please say that explicitly in the commit log. That's good; thanks for making this a separate patch so it's not mingled with real changes. > Signed-off-by: Lad Prabhakar > --- > arch/arm64/configs/defconfig | 2 +- > drivers/pci/controller/Kconfig | 4 +- > drivers/pci/controller/Makefile | 2 +- > drivers/pci/controller/pcie-rcar-host.c | 1044 ++++++++++++++++++++++++++ > drivers/pci/controller/pcie-rcar.c | 1229 ++----------------------------- > drivers/pci/controller/pcie-rcar.h | 126 ++++ > 6 files changed, 1227 insertions(+), 1180 deletions(-) > create mode 100644 drivers/pci/controller/pcie-rcar-host.c > create mode 100644 drivers/pci/controller/pcie-rcar.h > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig > index b2f6673..8a1f51d 100644 > --- a/arch/arm64/configs/defconfig > +++ b/arch/arm64/configs/defconfig > @@ -182,7 +182,7 @@ CONFIG_HOTPLUG_PCI=y > CONFIG_HOTPLUG_PCI_ACPI=y > CONFIG_PCI_AARDVARK=y > CONFIG_PCI_TEGRA=y > -CONFIG_PCIE_RCAR=y > +CONFIG_PCIE_RCAR_HOST=y > CONFIG_PCI_HOST_GENERIC=y > CONFIG_PCI_XGENE=y > CONFIG_PCIE_ALTERA=y > diff --git a/drivers/pci/controller/Kconfig b/drivers/pci/controller/Kconfig > index f84e5ff..94bb5e9 100644 > --- a/drivers/pci/controller/Kconfig > +++ b/drivers/pci/controller/Kconfig > @@ -54,12 +54,12 @@ config PCI_RCAR_GEN2 > There are 3 internal PCI controllers available with a single > built-in EHCI/OHCI host controller present on each one. > > -config PCIE_RCAR > +config PCIE_RCAR_HOST The config symbol change should be mentioned in the commit log. In general we try to avoid changing config symbols because it's likely to confuse people who keep their .config and update their kernel. But I guess your audience is probably pretty small. > bool "Renesas R-Car PCIe controller" The description needs to be updated, too. This is what people will see in menuconfig. > depends on ARCH_RENESAS || COMPILE_TEST > depends on PCI_MSI_IRQ_DOMAIN > help > - Say Y here if you want PCIe controller support on R-Car SoCs. > + Say Y here if you want PCIe controller support on R-Car SoCs in host mode. Wrap this so it fits in 80 columns like the rest of the file. Bjorn