Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp705938ybz; Fri, 17 Apr 2020 08:35:39 -0700 (PDT) X-Google-Smtp-Source: APiQypKyan2pGA0yDc3758Y/oZR3xj57b2FL5Ab1b0Vmxiq/CLaHBeAL7ILp8eKuAYXOfIfvzyJD X-Received: by 2002:a17:906:4e46:: with SMTP id g6mr3554431ejw.36.1587137739444; Fri, 17 Apr 2020 08:35:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587137739; cv=none; d=google.com; s=arc-20160816; b=dpLMbzAVhWFM/YVfj4L3ixdi35C/+uXPNAEpGnwatlifZlqKaWoNKDps/ob4CSccXU ujLK99Pa5AlKcVjd6BvCH0lHnmlf1RRdLvZAl3cdEQ/BEKrVFObSoq8ZaUd2SX+jGnog WNkVuejXiMB0okjfgYnupffBqamfGQZAEBjun6uU7raGoAa2IvxJbYtocPlNxapZcqEM Mq/2jknOJkRB1D60DVtu8PFQGl2aMJgxTZ8e6mlplmxx9HGg7CnjZWiDyP9Jw53PFgrZ rIJmIcDKXyVHnUvu8akfSc8b7ENyJlVWRQoKnQBVc0/FWb0Tt0A+3uLChspqGtB04mMi VgYg== 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=pCf77gBGsNoxd3wHN/F8LmA1w4gH55BE282eiupM744=; b=NEFN/GmdLPnnv5XboQdOmgO8dD7UXyWNAgcs77/1Pfmr+a00D4Uu6l/tszr3i3H5AT KC9KT1Keq5VBDA30LFSurb0lfxA5XR/LwfOyLhJVnjx+Za8WVnfQgCk58nA67rwiU+y9 mc5bC+XQPSY9EGy9r2VlNjd9hfNsSP1TyfDQfWEd6Gd1xGSewVroU5G2XsWcNm9aWu7t yjkkWh17ymFakD0mJRN4bCjlOmob1bcQw8fIKz9zHxgKRHgnaH/0hl63w4QhpFILcVVB 4MINmXqJseWGiAydzivIQdz4mK8aCOwiB6YkM42iDGiODRXGMRfvn2W38amo94GrUZFD GSjQ== 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 sa4si15326086ejb.69.2020.04.17.08.35.15; Fri, 17 Apr 2020 08:35:39 -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 S1729196AbgDQPbz (ORCPT + 99 others); Fri, 17 Apr 2020 11:31:55 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:57512 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728959AbgDQPby (ORCPT ); Fri, 17 Apr 2020 11:31:54 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 493g7D0JF5z1rtyg; Fri, 17 Apr 2020 17:31:51 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 493g7C5ZqDz1qr4G; Fri, 17 Apr 2020 17:31:51 +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 GUUUdMPMKaWa; Fri, 17 Apr 2020 17:31:50 +0200 (CEST) X-Auth-Info: ukL+QQvR1R43aIroK+RGm7l/Kp938KyMrR7ZkknM+ig= 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:31:50 +0200 (CEST) Subject: Re: [PATCH v2 03/12] bus: stm32-fmc2-ebi: add STM32 FMC2 EBI controller driver To: Christophe Kerello , Boris Brezillon Cc: 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> From: Marek Vasut Message-ID: Date: Fri, 17 Apr 2020 17:31:49 +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: 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: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 ?