From patchwork Fri May 29 13:15:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 199754 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60187C433E0 for ; Fri, 29 May 2020 13:16:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3C6E4206F1 for ; Fri, 29 May 2020 13:16:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726792AbgE2NQK (ORCPT ); Fri, 29 May 2020 09:16:10 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:49241 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726638AbgE2NQK (ORCPT ); Fri, 29 May 2020 09:16:10 -0400 X-Originating-IP: 91.224.148.103 Received: from localhost.localdomain (unknown [91.224.148.103]) (Authenticated sender: miquel.raynal@bootlin.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 94D42FF813; Fri, 29 May 2020 13:16:03 +0000 (UTC) From: Miquel Raynal To: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , , Rob Herring , Mark Rutland , Cc: Boris Brezillon , Thomas Petazzoni , Paul Cercueil , Chuanhong Guo , Weijie Gao , , Mason Yang , Julien Su , Miquel Raynal Subject: [PATCH v8 0/5] Preparation to the generic ECC engine abstraction Date: Fri, 29 May 2020 15:15:57 +0200 Message-Id: <20200529131602.21532-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This is a respin of the end of my previous series, just the patches which needed to be fixed. Changes in v8: * Split "Convert generic NAND bits to ECC framework" into several peaces: > added two helpers > converted SPI-NAND then raw-NAND. * Fixed a comment. * Used the _ooblayout suffix instead of _layout. Miquel Raynal (5): mtd: nand: Convert generic NAND bits to use the ECC framework mtd: rawnand: Hide the generic OOB layout objects behind helpers mtd: rawnand: Write a compatibility layer mtd: rawnand: Move generic OOB layouts to the ECC framework mtd: rawnand: Move the user input parsing bits to the ECC framework drivers/mtd/nand/ecc.c | 314 +++++++++++++++ drivers/mtd/nand/raw/Kconfig | 1 + drivers/mtd/nand/raw/arasan-nand-controller.c | 2 +- drivers/mtd/nand/raw/atmel/nand-controller.c | 5 +- drivers/mtd/nand/raw/davinci_nand.c | 3 +- drivers/mtd/nand/raw/denali.c | 3 + .../mtd/nand/raw/ingenic/ingenic_nand_drv.c | 6 +- drivers/mtd/nand/raw/nand_base.c | 380 ++++-------------- drivers/mtd/nand/raw/nand_toshiba.c | 2 +- drivers/mtd/nand/raw/sunxi_nand.c | 3 +- drivers/mtd/nand/raw/tegra_nand.c | 5 +- drivers/mtd/nand/raw/vf610_nfc.c | 2 +- include/linux/mtd/nand.h | 23 +- include/linux/mtd/rawnand.h | 17 +- 14 files changed, 428 insertions(+), 338 deletions(-)