Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp716046ybz; Fri, 17 Apr 2020 08:46:43 -0700 (PDT) X-Google-Smtp-Source: APiQypJMT9mjMg6AfEkVJJ8HABEBkI/UqykWPqoOamm4o73Wk7L9k8fQB3FwsLcm9n63XV7IKZp+ X-Received: by 2002:a17:906:1e4a:: with SMTP id i10mr3525305ejj.169.1587138403427; Fri, 17 Apr 2020 08:46:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587138403; cv=none; d=google.com; s=arc-20160816; b=YSKLKX9Nkqk8PG/gljh/wVU8hwJCK2NyZhT2SkKq/ET0SMQLUdjLXZhbmMc5q3zOxI Iy0t421c390fgPsfAGl8vN3e7deN1YJgWI2cZ/3UHHJqlphWTDrtoHbJ6fMOv7sNjm1I S57mgzk8TnU6YhIZo+Yj5HZSFx0rPuqItJkyTt318rt9WSiWZSd8tbV2UQ4CiVLB7FkK t8YGmw20lOY7xFSe/av1xZi/hehSOHW3QvFAg2yDJXPOti6J9Q5fv1x/SoSJUrzsV3vN WsnabK6p/uLDSrayOQiiUCMDVALTNK9OX2NcrmQOnYHU6pukVnEv1H2/BzDGO7eMeS+v YsIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=bc7JbjfpPEBfXTzuKWLDKPFajj/nJZ/KuGOM3vI7eaM=; b=cdt/dwoIs4RS8uB0xFfj8L2V7aWtyjgmtcrVwSEorBgpY329mv2WCVqa//iEwc04Co 3BzifRNLeCn+5j8l3wTq9KKfn2VzVlM9nhBP/H0GIfokPN+eGtEfPAgloB5gf2B73QZa VAYBY8d+0i2WQqN37FwSw/XkMB4u3T0H3qTGL5yDJwMVdjALzxn53g3IbhcQrF0htchw 3OO92LfOBXj3sAN9FOySoWlv/72nmQxdd1oE0cDjJSp9CH0p7eg6y3AxYbbFQLYOTUgH X7KikNQcZ/eSpqYsY9GW6dt1P2A9qEYgtMlDij7V+xWdi3kew5iDqpNri8aylKTBFdDX 6myQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s3si1578689edq.467.2020.04.17.08.46.19; Fri, 17 Apr 2020 08:46:43 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729379AbgDQPoq (ORCPT + 99 others); Fri, 17 Apr 2020 11:44:46 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:46560 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729274AbgDQPoq (ORCPT ); Fri, 17 Apr 2020 11:44:46 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 493gQ33mVFz1qs3y; Fri, 17 Apr 2020 17:44:43 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 493gQ31pDhz1qr4G; Fri, 17 Apr 2020 17:44:43 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id pu2rDxhfP016; Fri, 17 Apr 2020 17:44:41 +0200 (CEST) X-Auth-Info: EiS9QEFo0KzXwC4rFmeq9CTThwEot7Y2z7NEORWW5mE= Received: from [IPv6:::1] (unknown [195.140.253.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 17 Apr 2020 17:44:41 +0200 (CEST) Subject: Re: [PATCH v2 03/12] bus: stm32-fmc2-ebi: add STM32 FMC2 EBI controller driver To: Boris Brezillon Cc: Christophe Kerello , miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, tony@atomide.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com References: <1586966256-29548-1-git-send-email-christophe.kerello@st.com> <1586966256-29548-4-git-send-email-christophe.kerello@st.com> <20200416215328.53982fef@collabora.com> <20200417174140.00456f36@collabora.com> From: Marek Vasut Message-ID: <53011403-49c4-dfcb-2f8c-11cf1ac5e2c1@denx.de> Date: Fri, 17 Apr 2020 17:44:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200417174140.00456f36@collabora.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/17/20 5:41 PM, Boris Brezillon wrote: > On Fri, 17 Apr 2020 17:31:49 +0200 > Marek Vasut wrote: > >> On 4/17/20 5:29 PM, Christophe Kerello wrote: >>> >>> >>> On 4/16/20 9:53 PM, Boris Brezillon wrote: >>>> On Wed, 15 Apr 2020 17:57:27 +0200 >>>> Christophe Kerello wrote: >>>> >>>>> The driver adds the support for the STMicroelectronics FMC2 EBI >>>>> controller >>>>> found on STM32MP SOCs. >>>>> >>>>> Signed-off-by: Christophe Kerello >>>>> Tested-by: Marek Vasut >>>>> --- >>>>> Changes in v2: >>>>>   - call 2 APIs to manage FMC2 enable/disable instead of ops >>>>>   - call 2 APIs to manage FMC2 NWAIT shared signal instead of ops >>>>> >>>>>   drivers/bus/Kconfig          |   11 + >>>>>   drivers/bus/Makefile         |    1 + >>>>>   drivers/bus/stm32-fmc2-ebi.c | 1091 >>>>> ++++++++++++++++++++++++++++++++++++++++++ >>>> >>>> Hm, I see that other memory bus controller drivers are placed under >>>> drivers/memory/, any reason for choosing drivers/bus/? If that's where >>>> we want to have all generic memory bus controllers to live it might be >>>> worth moving existing drivers to the drivers/bus/ directory at some >>>> point. >>>> >>> >>> Hi Boris, >>> >>> I see this controller as an external bus interface as we are able to >>> attach different devices on it, like a PSRAM, an ethernet controller, a >>> FPGA, a LCD display, ... >>> >>> When I had a look at bus/Kconfig file, I have found similar drivers >>> (like IMX_WEIM or QCOM_EBI2 drivers). These drivers are able to connect >>> devices like NAND Flash, SRAM, ethernet adapters, FPGAs and LCD displays >>> as it is written in the Kconfig file. >>> >>> But, after checking memory/Kconfig file, it is also possible to find >>> similar drivers (like ATMEL_EBI driver that is inspired by the WEIM bus >>> driver). >>> >>> So, I will follow the recommendation and I will move it to >>> drivers/memory folder if it is the place where this driver should be. >> >> The EBI isn't a memory bus, you can very well have a non-memory device, >> like an external parallel bus memory controller on it. So why should it >> be in drivers/memory ? > > Just like most of those so-called memory bus controllers we have under > drivers/memory/ => they are most of the time used to interact with > memories but can also be used for other things (Christophe listed a few > uses cases). And I'm not pushing one way or the other, all I said was > that we should makes things consistent instead of having half of > those controller drivers in drivers/memory/ and the other half in > drivers/bus/. I agree with that.