Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp704151ybz; Fri, 17 Apr 2020 08:33:43 -0700 (PDT) X-Google-Smtp-Source: APiQypK35MOCfdI3aPAJVxrEjrHzcfUrsfMdE/MaJvyb7nM2AuC6gA7T7P1/DUjl6c1bWfNQhAkn X-Received: by 2002:a17:906:1f47:: with SMTP id d7mr3659264ejk.37.1587137622994; Fri, 17 Apr 2020 08:33:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587137622; cv=none; d=google.com; s=arc-20160816; b=egPhLfwimvrFDi+by2lRsce8TIWYJ/5ZDs55KyeqCiQmEguPHJbATyTZfhR2Zq1ZD/ Swp1vHaZPVDs0hh1h5KaTAiPnLIGoRfS6QTikn0wAiJTjkD+R0ogzHo7DldUeX2/2wwp xxdIwdjtsK8CHSMG1CVDl5H/pe8CtZm8fUkMwvLMY5HrjKEJo/ynj4aLNvOrQC4vVwCS iP0F7/hU3BrGURDM0AZH93lbQ/S8TLYTHn6Wrj5Quym9OjJU8KiiSVySsTVY7bm93p2n ve6U8SKN98Ko0qk5aXfnCSc/F/GJhDcs/essdR2zliVHjKMxHKnGyHj22IKeQWIQNhD5 l4YA== 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:dkim-signature; bh=zg2l/xaHbJpPirEybKyuid8T5Usbcw6D5SirTrUwrsA=; b=ulljXbmLUZrtUIl7Y0h2tJZMNCbTqqz4z9rh/BKZQ/d2Kw+OuZPmxJ7OiMkOxC4lto HBpAJSDz0MIr3Z2EnrqOsKeDoeZ6ixklVKf8pvddUiGItqDYmnbiPV5xMpH+fBdo7VLc poo7hNKr60qd993AfiVPOUM/VNh9Suxev9C40q3BiLzJMcrksttIJ27q3ks6FyzsN7do yTrSNzYHHv1DCRQKZkBLywX1RzHjvvg5X4QoCv3MdrxjKfsmBI/Gtx0PZPPI86o5Bz4w cX2R1RGo5n8n9UfKaVOONBvdsqfZ8thGAoO5TBJ0MIr+qmDyNjCmrm6dZTXoGk9LrQou fxJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=WOknlh2t; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y24si8511386edw.420.2020.04.17.08.33.19; Fri, 17 Apr 2020 08:33:42 -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; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=WOknlh2t; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729110AbgDQPaJ (ORCPT + 99 others); Fri, 17 Apr 2020 11:30:09 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:27764 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729017AbgDQPaJ (ORCPT ); Fri, 17 Apr 2020 11:30:09 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03HFIR9E021936; Fri, 17 Apr 2020 17:29:38 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=zg2l/xaHbJpPirEybKyuid8T5Usbcw6D5SirTrUwrsA=; b=WOknlh2tWPlU+ymmYGqe/VN9kY6eh986HBuIgNpOmh6u8LL+zNMcnkXC2nVtTETWa/Qh OAyc+jy48wqVIoUWuaaAQqOCznw2m2lrCQAPwHmyRjv6jZfSCihqfaFyx1QN283mAxJS 9CE5BNrdgpUqvSiUSqtZEtvnMJw9luCpS1dizvC8ExxMP8n9rT91r/hatJqlqGpmfJvV pMjy/snxLc4YDxWWO/dKxKDOK4HGKiQ9Z+vswmhpZTa0GEDF7zoVm/VDFC8Kn18D+rwH Kbx9UxfkTBRaT431u+7pl/njiOxlqUOkw9gq11F3pq8p9KLoz9ymQUt+YePuYcXGMXWe ew== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 30dn94tb8v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Apr 2020 17:29:38 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 272C410002A; Fri, 17 Apr 2020 17:29:37 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag6node2.st.com [10.75.127.17]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id E3D612BF9AB; Fri, 17 Apr 2020 17:29:36 +0200 (CEST) Received: from [10.211.0.195] (10.75.127.44) by SFHDAG6NODE2.st.com (10.75.127.17) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 17 Apr 2020 17:29:34 +0200 Subject: Re: [PATCH v2 03/12] bus: stm32-fmc2-ebi: add STM32 FMC2 EBI controller driver To: Boris Brezillon CC: , , , , , , , , , , , 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: Christophe Kerello Message-ID: Date: Fri, 17 Apr 2020 17:29:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20200416215328.53982fef@collabora.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG1NODE1.st.com (10.75.127.1) To SFHDAG6NODE2.st.com (10.75.127.17) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-04-17_06:2020-04-17,2020-04-17 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Regards, Christophe Kerello.