Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1712720ybk; Mon, 11 May 2020 02:24:28 -0700 (PDT) X-Google-Smtp-Source: APiQypKKuymaGGBwLAKLU+2XYvmv17WzeJa8aUST0OPvkqhAGXSxJ02hMZZhYbfPmyrNqVbveIBO X-Received: by 2002:a17:906:3e0d:: with SMTP id k13mr5000945eji.145.1589189068556; Mon, 11 May 2020 02:24:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589189068; cv=none; d=google.com; s=arc-20160816; b=yDTZGCCAQUUufbmnbzjaFObekRyA/H0G77Q0rZEhLWOfTYKbbKkWjCpWdsiLimzU8h QahlI4gc7pXlru1TSu43fNc3EtwKg4F5CZ+9zhVkRAPkI0BjVo+FSn5bVs3wJRZfsNs0 S4XHKbbGAUcrxo8BbmJUuS2R6Jmku0zINU3uVNHJDbOLtzQJ4nBEcTIIER9WM7GNXSS3 T5wSO3HrP4C9b2MylIEwQJQ9lNTCMgYw+nV8+trAR53+FPdR16s48gwoeSMbTrqX58L6 dKk7EY3wk7pc1B5xm2s4gp0iA+59Tw73cGcumX36f+FbScEKLXh7j97CL38keD7mT6L9 +j1A== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=LdGGzd/33uNjfEqOqbf3LW/JPXzYNZ++CKOO8soTqYw=; b=azOU71gNW4KJU62HfjbfkaPhSYmDb8+mXKvPurM8TvuPmbJyl0OR4QMEUyAmw79yR5 Mj7rRDfFkpIIJvhjy/HX0XR53SNqqpCcgMmIfsXUyJ/5mAvKOJShMS3ZbxS5qBXNT+d8 GcOG0FstyhTikJ+SHIycm/bkdlFwnexkolH7FMNJ1/jP0K6K53uov/Y0snnZU9m7gvpS aqzS76+N1YkQE3egwulkQ2j3E2jfClLtLleWanYn1RnBEj49rQhVJhpcaEruZhLdN2IL tHCyqNvaalOKx9NlPfn/8dVkYkU8Prkw0A5sBTKTijPDmzM8bwAkm9q/oDLGrcxGYZWk UOkQ== 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 w14si5595651edf.402.2020.05.11.02.24.05; Mon, 11 May 2020 02:24:28 -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 S1729207AbgEKJWn convert rfc822-to-8bit (ORCPT + 99 others); Mon, 11 May 2020 05:22:43 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:48493 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbgEKJWm (ORCPT ); Mon, 11 May 2020 05:22:42 -0400 Received: from xps13 (unknown [91.224.148.103]) (Authenticated sender: miquel.raynal@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id D238124000F; Mon, 11 May 2020 09:22:38 +0000 (UTC) Date: Mon, 11 May 2020 11:22:37 +0200 From: Miquel Raynal To: Christophe Kerello Cc: , , , , , , , , , , Subject: Re: [PATCH v4 00/10] add STM32 FMC2 EBI controller driver Message-ID: <20200511112237.20751831@xps13> In-Reply-To: <1588756279-17289-1-git-send-email-christophe.kerello@st.com> References: <1588756279-17289-1-git-send-email-christophe.kerello@st.com> Organization: Bootlin X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christophe, Christophe Kerello wrote on Wed, 6 May 2020 11:11:09 +0200: > The FMC2 functional block makes the interface with: synchronous and > asynchronous static devices (such as PSNOR, PSRAM or other memory-mapped > peripherals) and NAND flash memories. > Its main purposes are: > - to translate AXI transactions into the appropriate external device > protocol > - to meet the access time requirements of the external devices > All external devices share the addresses, data and control signals with the > controller. Each external device is accessed by means of a unique Chip > Select. The FMC2 performs only one access at a time to an external device. > > Changes in v4: > - bindings: > - fix filename: st,stm32-fmc2-ebi.yaml > > Changes in v3: > - NAND: > - rename labels used on errors > - add in the commit log the reason to increase FMC2_TIMEOUT_MS (patch 3) > - add Miquel reviewed-by tag (patches 2/4/5/9) > - EBI: > - move in memory folder > - merge MFD and BUS drivers to avoid a MFD driver > - bindings: > - pattern name has been modified > - vendor properties have been modified > - s/_/-/ > - add unit suffix (-ns) on timing properties > > Christophe Kerello (10): > mtd: rawnand: stm32_fmc2: manage all errors cases at probe time > mtd: rawnand: stm32_fmc2: remove useless inline comments > mtd: rawnand: stm32_fmc2: use FMC2_TIMEOUT_MS for timeouts > mtd: rawnand: stm32_fmc2: cleanup > mtd: rawnand: stm32_fmc2: use FIELD_PREP/FIELD_GET macros > dt-bindings: mtd: update STM32 FMC2 NAND controller documentation > dt-bindings: memory-controller: add STM32 FMC2 EBI controller > documentation > memory: stm32-fmc2-ebi: add STM32 FMC2 EBI controller driver > mtd: rawnand: stm32_fmc2: use regmap APIs > mtd: rawnand: stm32_fmc2: get resources from parent node > > .../memory-controllers/st,stm32-fmc2-ebi.yaml | 261 +++++ > .../bindings/mtd/st,stm32-fmc2-nand.yaml | 19 +- > drivers/memory/Kconfig | 10 + > drivers/memory/Makefile | 1 + > drivers/memory/stm32-fmc2-ebi.c | 1206 ++++++++++++++++++++ > drivers/mtd/nand/raw/Kconfig | 1 + > drivers/mtd/nand/raw/stm32_fmc2_nand.c | 1176 ++++++++++--------- > 7 files changed, 2061 insertions(+), 613 deletions(-) > create mode 100644 Documentation/devicetree/bindings/memory-controllers/st,stm32-fmc2-ebi.yaml > create mode 100644 drivers/memory/stm32-fmc2-ebi.c > I'm fine with the preparation patches 1-5 but the other patches need Rob's hack and probably more changes. If it's fine with you I can apply these patches for the next merge window and let more time to work on the last 5. Thanks, Miquèl