Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3889951yba; Mon, 29 Apr 2019 10:09:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqylUF1bunkeOaYmF8Sr0IuhnXBQo60gkvbrOiP8IorFG1vqJU/HUVrOAesnIe6m2fymBzrs X-Received: by 2002:a17:902:364:: with SMTP id 91mr61590954pld.72.1556557748025; Mon, 29 Apr 2019 10:09:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556557748; cv=none; d=google.com; s=arc-20160816; b=nq5Biy5azANfLlLBb8TaMz0dr+dt35oAF8HEdxNcff62xzgWcbjfp5BUM4l+eQQAGQ mosgU4cSYKt4YR5VZ+3wci83vSLhP/pT3SEp8yG5oO/9KpDFBjyyIt6PrpVUonirRaD6 0QBTRM/5b+vKuR8mwEConyjf3tEM+Pqdei4KPXX7LT8L+4mo6Aozmd0Yp6BooIj40Zlt Zd1gBOviZwY8MC6BBWbn0a1TRGK+kBFtJYaQOrvuzINFSvTs55U+4pwrR/i8ZOUqB7AM 3CrObhVtyD4KJOali6UajDwuGeNE5DZB9RIRAZgSeoAmeM4/3QoERVipON3jsTM9EQVq M9sA== 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:dkim-signature; bh=YSLhg6H0pIEIznYaFCuCBFHKdnVnFqNAMh0GNwbgISg=; b=cDwy2p6uwvAM2XVqN4r5khG0YY5HDFQlC4++Edqa53O0Gp8runTMz7Z2M4yDEPm/mi kVNXosmUQyh+QLYZWK0xS51I+pJjPcHIrWV4FZkBf6CDsn6q+6jYoMrNPpT9OmpQambS FzF9l5LMssH6/tKSGPv7PZ6Iya4EouKr7iFpB3qowm1wNvp8Bq+JE4ajpTh1ybarXBYk 1eNXKbvz0sWn6aOZU4U+73OMQ0AcX3G1Y0Hy8Bq0cSq87lQbUrhl//h4y/tlJifFfTBr KbuF+iyYg2yuaO9LBxBFvV5Cl+91hP6lhTPY5ECu5iy0E999s3pZfusrHuJc/5wyesS6 XbHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=VzjORjCk; 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 s3si5437976plp.47.2019.04.29.10.08.46; Mon, 29 Apr 2019 10:09:08 -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; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=VzjORjCk; 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 S1728855AbfD2RHy (ORCPT + 99 others); Mon, 29 Apr 2019 13:07:54 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:46854 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728825AbfD2RHx (ORCPT ); Mon, 29 Apr 2019 13:07:53 -0400 Received: by mail-lj1-f194.google.com with SMTP id h21so10026485ljk.13 for ; Mon, 29 Apr 2019 10:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=YSLhg6H0pIEIznYaFCuCBFHKdnVnFqNAMh0GNwbgISg=; b=VzjORjCkFdiOobLGhdofobwnJ15ToGzFh9dFZvdQ4QwpBDdTE1iId7YQz6Uztw+I0Z GEF6vpRo/XG5ojOBt140eqiNpkBOvAdQDpixwjr8gNsPiLPGwhVPyeht7Rxaoft/NUDa s6VJuurV1Vv+XzC1yHvn6qKvwDInf9Bxqq3DFONMbjwMGqsktEVYXDT5uJZz2nbFym9K 8YNgl8RsSh5FTeuSYAhlGHTEl9JVy+ELa1+CZ9RMdoyTkoIXxgTlMZ/PZoP8Xla7fOHB yqM/fzjogPhkqwOv5StmAbM83STsahSang58POSx/yo1ACOkSBppN1Q+T6IcFgxdAYZw DGJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YSLhg6H0pIEIznYaFCuCBFHKdnVnFqNAMh0GNwbgISg=; b=e/BV7fu7rcq8eHVmstSlV8jlQveq8P9ECTrHN3ZOfG7dPud/UpMtDcMx31dd6pbCt3 gJ+2Ggi+Gg+wT45rTPpyE22U8iktRea8l/JnNzopofr6JJprw/HrsP4Jl/wVhRzKHdv5 wEWM41Pd3JYs2gHLbu7bQzXLrfetsBMaaK+ODaEapRdWlMMO9xlF0jbmxTLEOrNGOj+F G9g1ku8XjZw8A8Zj0EgUY/auKZOMKXCrSRRCEjh14VBCsJaRAFrnj4GoLsrHA8Hifi7w yrQtp+OpWxtPT3nx/12Co6AV459h03iZwTCNMkoozxAIM8XF3AG+2c6zuRZs5ywHP2pY Cgng== X-Gm-Message-State: APjAAAXXYxv12T3vKiNJrfVe8CfPJS474qbUt/3x1CfDpp4mSqd+H1IT 4Zv7+XINWHiF9dsbzTYswWxLhzt9OzI9Vw== X-Received: by 2002:a2e:984d:: with SMTP id e13mr11491219ljj.61.1556557670390; Mon, 29 Apr 2019 10:07:50 -0700 (PDT) Received: from localhost (h85-30-9-151.cust.a3fiber.se. [85.30.9.151]) by smtp.gmail.com with ESMTPSA id d25sm3497098lja.91.2019.04.29.10.07.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Apr 2019 10:07:48 -0700 (PDT) Date: Mon, 29 Apr 2019 09:36:10 -0700 From: Olof Johansson To: Patrick Venture Cc: Arnd Bergmann , Greg KH , Joel Stanley , Andrew Jeffery , Linux Kernel Mailing List , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-aspeed@lists.ozlabs.org Subject: Re: [PATCH v2] soc: add aspeed folder and misc drivers Message-ID: <20190429163610.vhnv7z6myco7e4i5@localhost> References: <20190422175419.189895-1-venture@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 22, 2019 at 12:24:28PM -0700, Patrick Venture wrote: > On Mon, Apr 22, 2019 at 10:54 AM Patrick Venture wrote: > > > > Create a SoC folder for the ASPEED parts and place the misc drivers > > currently present into this folder. These drivers are not generic part > > drivers, but rather only apply to the ASPEED SoCs. > > > > Signed-off-by: Patrick Venture > > --- > > v2: > > Added configuration option for ASPEED to soc/Makefile > > --- > > drivers/misc/Kconfig | 16 ---------------- > > drivers/misc/Makefile | 2 -- > > drivers/soc/Kconfig | 1 + > > drivers/soc/Makefile | 1 + > > drivers/soc/aspeed/Kconfig | 19 +++++++++++++++++++ > > drivers/soc/aspeed/Makefile | 2 ++ > > .../{misc => soc/aspeed}/aspeed-lpc-ctrl.c | 0 > > .../{misc => soc/aspeed}/aspeed-lpc-snoop.c | 0 > > 8 files changed, 23 insertions(+), 18 deletions(-) > > create mode 100644 drivers/soc/aspeed/Kconfig > > create mode 100644 drivers/soc/aspeed/Makefile > > rename drivers/{misc => soc/aspeed}/aspeed-lpc-ctrl.c (100%) > > rename drivers/{misc => soc/aspeed}/aspeed-lpc-snoop.c (100%) > > > > diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig > > index 42ab8ec92a04..b80cb6af0cb4 100644 > > --- a/drivers/misc/Kconfig > > +++ b/drivers/misc/Kconfig > > @@ -496,22 +496,6 @@ config VEXPRESS_SYSCFG > > bus. System Configuration interface is one of the possible means > > of generating transactions on this bus. > > > > -config ASPEED_LPC_CTRL > > - depends on (ARCH_ASPEED || COMPILE_TEST) && REGMAP && MFD_SYSCON > > - tristate "Aspeed ast2400/2500 HOST LPC to BMC bridge control" > > - ---help--- > > - Control Aspeed ast2400/2500 HOST LPC to BMC mappings through > > - ioctl()s, the driver also provides a read/write interface to a BMC ram > > - region where the host LPC read/write region can be buffered. > > - > > -config ASPEED_LPC_SNOOP > > - tristate "Aspeed ast2500 HOST LPC snoop support" > > - depends on (ARCH_ASPEED || COMPILE_TEST) && REGMAP && MFD_SYSCON > > - help > > - Provides a driver to control the LPC snoop interface which > > - allows the BMC to listen on and save the data written by > > - the host to an arbitrary LPC I/O port. > > - > > config PCI_ENDPOINT_TEST > > depends on PCI > > select CRC32 > > diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile > > index d5b7d3404dc7..b9affcdaa3d6 100644 > > --- a/drivers/misc/Makefile > > +++ b/drivers/misc/Makefile > > @@ -54,8 +54,6 @@ obj-$(CONFIG_GENWQE) += genwqe/ > > obj-$(CONFIG_ECHO) += echo/ > > obj-$(CONFIG_VEXPRESS_SYSCFG) += vexpress-syscfg.o > > obj-$(CONFIG_CXL_BASE) += cxl/ > > -obj-$(CONFIG_ASPEED_LPC_CTRL) += aspeed-lpc-ctrl.o > > -obj-$(CONFIG_ASPEED_LPC_SNOOP) += aspeed-lpc-snoop.o > > obj-$(CONFIG_PCI_ENDPOINT_TEST) += pci_endpoint_test.o > > obj-$(CONFIG_OCXL) += ocxl/ > > obj-y += cardreader/ > > diff --git a/drivers/soc/Kconfig b/drivers/soc/Kconfig > > index c07b4a85253f..b750a88547c7 100644 > > --- a/drivers/soc/Kconfig > > +++ b/drivers/soc/Kconfig > > @@ -2,6 +2,7 @@ menu "SOC (System On Chip) specific Drivers" > > > > source "drivers/soc/actions/Kconfig" > > source "drivers/soc/amlogic/Kconfig" > > +source "drivers/soc/aspeed/Kconfig" > > source "drivers/soc/atmel/Kconfig" > > source "drivers/soc/bcm/Kconfig" > > source "drivers/soc/fsl/Kconfig" > > diff --git a/drivers/soc/Makefile b/drivers/soc/Makefile > > index 90b686e586c6..814128fe479f 100644 > > --- a/drivers/soc/Makefile > > +++ b/drivers/soc/Makefile > > @@ -4,6 +4,7 @@ > > # > > > > obj-$(CONFIG_ARCH_ACTIONS) += actions/ > > +obj-$(CONFIG_ARCH_ASPEED) += aspeed/ > > obj-$(CONFIG_ARCH_AT91) += atmel/ > > obj-y += bcm/ > > obj-$(CONFIG_ARCH_DOVE) += dove/ > > diff --git a/drivers/soc/aspeed/Kconfig b/drivers/soc/aspeed/Kconfig > > new file mode 100644 > > index 000000000000..457282cd1da5 > > --- /dev/null > > +++ b/drivers/soc/aspeed/Kconfig > > @@ -0,0 +1,19 @@ > > +menu "Aspeed SoC drivers" > > + > > +config ASPEED_LPC_CTRL > > + depends on (ARCH_ASPEED || COMPILE_TEST) && REGMAP && MFD_SYSCON > > + tristate "Aspeed ast2400/2500 HOST LPC to BMC bridge control" > > + ---help--- > > + Control Aspeed ast2400/2500 HOST LPC to BMC mappings through > > + ioctl()s, the driver also provides a read/write interface to a BMC ram > > + region where the host LPC read/write region can be buffered. > > + > > +config ASPEED_LPC_SNOOP > > + tristate "Aspeed ast2500 HOST LPC snoop support" > > + depends on (ARCH_ASPEED || COMPILE_TEST) && REGMAP && MFD_SYSCON > > + help > > + Provides a driver to control the LPC snoop interface which > > + allows the BMC to listen on and save the data written by > > + the host to an arbitrary LPC I/O port. > > + > > + > > diff --git a/drivers/soc/aspeed/Makefile b/drivers/soc/aspeed/Makefile > > new file mode 100644 > > index 000000000000..cfaa9adc67b5 > > --- /dev/null > > +++ b/drivers/soc/aspeed/Makefile > > @@ -0,0 +1,2 @@ > > +obj-$(CONFIG_ASPEED_LPC_CTRL) += aspeed-lpc-ctrl.o > > +obj-$(CONFIG_ASPEED_LPC_SNOOP) += aspeed-lpc-snoop.o > > diff --git a/drivers/misc/aspeed-lpc-ctrl.c b/drivers/soc/aspeed/aspeed-lpc-ctrl.c > > similarity index 100% > > rename from drivers/misc/aspeed-lpc-ctrl.c > > rename to drivers/soc/aspeed/aspeed-lpc-ctrl.c > > diff --git a/drivers/misc/aspeed-lpc-snoop.c b/drivers/soc/aspeed/aspeed-lpc-snoop.c > > similarity index 100% > > rename from drivers/misc/aspeed-lpc-snoop.c > > rename to drivers/soc/aspeed/aspeed-lpc-snoop.c > > -- > > 2.21.0.593.g511ec345e18-goog > > > > Fixed CC on this reply (Gmail button didn't behave as expected) and > replied to the v2 patchset instead of accidentally the first. Replaced v1 patch with this one. Please thread your patch series or follow up saying they've been superceded to avoid maintainers from doing duplicate work. > Given this patchset, I have several patches that move the drivers into > the folder, and thought about writing it up as a series. I wanted to > see how this patchset would do before I staged the rest -- my question > is, should this patchset create the folder with the empty Kconfig and > Makefile, and then have follow-on patches that provide content to > split out the process into multiple logical steps? What's the purpose of moving the drivers? Are they mislocated where they are now? It'd be useful to see an inventory of which ones they are. As mentioned on the other reply, there's no reason to move drivers to drivers/soc just because they happen to be an IP block on one SoC. We really prefer to have the drivers located in the subsystems they belong. -Olof