Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp500512imm; Wed, 4 Jul 2018 00:34:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcuxiSYG2RcfBv+n6K8Pc6CklBdxMeM9suB9qn3TTCxGlWhGVziiGhanup2/7s8L2se8/uQ X-Received: by 2002:a63:551e:: with SMTP id j30-v6mr866146pgb.92.1530689686722; Wed, 04 Jul 2018 00:34:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530689686; cv=none; d=google.com; s=arc-20160816; b=gmocSiYwrwf4dy4rM19Uiq2agqc6kr4ZxDVxVZZnADyIf846giS+ns25o8qD2WgRWg AdSWgPCFPGuD7ibm3hN6r/6KkWxg4RQcTpWwptjMEmHJsnKa2Wxnl4xUyZyAtujo376c VWS1YUraj8oc8NakzXUrMWh+lkAzFx1bXwokLXzDpvrWclGP9qVaKUgBxuqrm8xhMT6o dAlkUuDTYRZY7cq+6jlTxDtNcEmBgondqp51QxF+mZlVaZUGX5fDOoSYLvBJ8yHiNfBA /B5/1wsyhKO3iXYJgBd0kcSbSWRo4aKRs/QRQnmwJWBf9/eEdBq/hHb7IaZHPBGRzS0C BiTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=MALfEu2hpUcGrZPYVmUFBnRcTJjTTu0QTh/nnl1zvMk=; b=zfbiQvUS/O7mmCfbqsc8WBShzdnC3Sb47BbWMLpzBTAeofVs0SriRzt0K7EFrsmxq1 vjGdEoEQXfM5cE8LYKqJvLzTgvmcQgBj97mUs6+fdxyZizoUE68ts8txGISGLNn8VhDv wrjxvtIa0gC4t6GaUbT/MRiOnENkEaI4StM3nDrnT8PaVSSulsPljSmsoDeT0se+8xug q40RCqyCCn5uOqIz8YWPg1xk8t+IU+Am1lMNpqr/E24gPJhmcTUKgmr9tYIpzjD/jJAL BSjW5cJ2oRxmkP4Kl0QKl+v4WgH8MIY5q3kB5VLL5HsGucCz4UuutcggrkSrT3WovqFp jtpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b="gn+Aw0a/"; 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 s7-v6si2586991pgq.230.2018.07.04.00.34.31; Wed, 04 Jul 2018 00:34:46 -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=@agner.ch header.s=dkim header.b="gn+Aw0a/"; 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 S932535AbeGDHdu (ORCPT + 99 others); Wed, 4 Jul 2018 03:33:50 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:52856 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932188AbeGDHds (ORCPT ); Wed, 4 Jul 2018 03:33:48 -0400 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 4F2205C015F; Wed, 4 Jul 2018 09:33:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1530689626; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MALfEu2hpUcGrZPYVmUFBnRcTJjTTu0QTh/nnl1zvMk=; b=gn+Aw0a/YMQ+KHvhu2esXp2a7spNrLol1DLxkC6xKQo1YfefN5nkfAse0j1BJXnlnRaTle YWAudHdk8Hfl/uogJ02+QXplxzX4lV5TlKtzrxzgzHSXV4Oo7QDjXoxmnsk3IPjnaMVuF4 RWy3Qd7ZaUzVAcUkGovEO+I7V3naTcM= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Wed, 04 Jul 2018 09:33:44 +0200 From: Stefan Agner To: thierry.reding@gmail.com, Miquel Raynal Cc: boris.brezillon@bootlin.com, dwmw2@infradead.org, computersforpeace@gmail.com, marek.vasut@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, dev@lynxeye.de, richard@nod.at, marcel@ziswiler.com, krzk@kernel.org, digetx@gmail.com, benjamin.lindqvist@endian.se, jonathanh@nvidia.com, pdeschrijver@nvidia.com, pgaikwad@nvidia.com, mirza.krak@gmail.com, gaireg@gaireg.de, linux-mtd@lists.infradead.org, linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 0/6] mtd: rawnand: add NVIDIA Tegra NAND flash support In-Reply-To: <20180625143437.24f71e7e@xps13> References: <20180624212727.21672-1-stefan@agner.ch> <20180625143437.24f71e7e@xps13> Message-ID: X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.4 X-Spamd-Result: default: False [-3.10 / 15.00]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_TWELVE(0.00)[23]; TAGGED_RCPT(0.00)[dt]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_SIGNED(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; ASN(0.00)[asn:29691, ipnet:2a02:418::/29, country:CH]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%]; ARC_NA(0.00)[] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thierry, Hi Miquel, On 25.06.2018 14:34, Miquel Raynal wrote: > Hi Stefan, > > On Sun, 24 Jun 2018 23:27:21 +0200, Stefan Agner > wrote: > >> Eigth and hopefully final revision gets rid of nand_release() as >> suggested by Boris. >> >> -- >> Stefan >> >> Changes since v1: >> - Split controller and NAND chip structure >> - Add BCH support >> - Allow to select algorithm and strength using device tree >> - Improve HW ECC error reporting and use DEC_STATUS_BUF only >> - Use SPDX license identifier >> - Use per algorithm mtd_ooblayout_ops >> - Use setup_data_interface callback for NAND timing configuration >> >> Changes since v2: >> - Set clock rate using assigned-clocks >> - Use BIT() macro >> - Fix and improve timing calculation >> - Improve ECC error handling >> - Store OOB layout for tag area in Tegra chip structure >> - Update/fix bindings >> - Use more specific variable names (replace "value") >> - Introduce nand-is-boot-medium >> - Choose sensible ECC strenght automatically >> - Use wait_for_completion_timeout >> - Print register dump on completion timeout >> - Unify tegra_nand_(read|write)_page in tegra_nand_page_xfer >> >> Changes since v3: >> - Implement tegra_nand_(read|write)_raw using DMA >> - Implement tegra_nand_(read|write)_oob using DMA >> - Name registers according to Tegra 2 Technical Reference Manual (v02p) >> - Use wait_for_completion_io_timeout to account for IO >> - Get chip select id from device tree reg property >> - Clear interrupts and reinit wait queues in case command/DMA times out >> - Set default MTD name after nand_set_flash_node >> - Move MODULE_DEVICE_TABLE after declaration of tegra_nand_of_match >> - Make (rs|bch)_strength static >> >> Changes since v4: >> - Pass OOB area to nand_check_erased_ecc_chunk >> - Pass algorithm specific bits_per_step to tegra_nand_get_strength >> - Store ECC layout in chip structure >> - Fix pointer assignment (use NULL) >> - Removed obsolete header delay.h >> - Fixed newlines >> - Use non-_io variant of wait_for_completion_timeout >> >> Changes since v5: >> - Drop extra OOB bytes support >> >> Changes since v6: >> - checkpatch.pl fixes >> >> Changes since v7: >> - Replace nand_release() with mtd_device_unregister() + nand_cleanup() >> >> Lucas Stach (1): >> ARM: dts: tegra: add Tegra20 NAND flash controller node >> >> Stefan Agner (5): >> mtd: rawnand: add Reed-Solomon error correction algorithm >> mtd: rawnand: add an option to specify NAND chip as a boot device >> mtd: rawnand: tegra: add devicetree binding >> mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver >> ARM: dts: tegra: enable NAND flash on Colibri T20 >> >> .../devicetree/bindings/mtd/nand.txt | 6 +- >> .../bindings/mtd/nvidia-tegra20-nand.txt | 64 + >> MAINTAINERS | 7 + >> arch/arm/boot/dts/tegra20-colibri-512.dtsi | 16 + >> arch/arm/boot/dts/tegra20.dtsi | 15 + >> drivers/mtd/nand/raw/Kconfig | 10 + >> drivers/mtd/nand/raw/Makefile | 1 + >> drivers/mtd/nand/raw/nand_base.c | 4 + >> drivers/mtd/nand/raw/tegra_nand.c | 1230 +++++++++++++++++ >> include/linux/mtd/rawnand.h | 7 + >> 10 files changed, 1359 insertions(+), 1 deletion(-) >> create mode 100644 Documentation/devicetree/bindings/mtd/nvidia-tegra20-nand.txt >> create mode 100644 drivers/mtd/nand/raw/tegra_nand.c >> > > Series applied to nand/next. I just changed the subject of patch3/6 to > be "dt-bindings: mtd: add tegra NAND controller binding". > It seems "series applied" refers to the MTD part... I guess patch 5 and 6 have to go through Tegra tree, Thierry? -- Stefan