From patchwork Tue May 2 08:13:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Couzens X-Patchwork-Id: 98416 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp1759656qgf; Tue, 2 May 2017 01:14:31 -0700 (PDT) X-Received: by 10.84.197.3 with SMTP id m3mr39933765pld.3.1493712871588; Tue, 02 May 2017 01:14:31 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id l77si16782338pfa.285.2017.05.02.01.14.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 May 2017 01:14:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=mvwYzMw0EWbrQ9oTDu0HX6sRoRtTEYY3Nr6odCRQCDI=; b=Vwa+NmlkHB1zbhFNPuZNX59H+3 AsI6v432bZiUSMQ45ZVQOc1xNs8mce1BSn0uBo4orzSWjdIx0ggToah/3GTG+NXDoWHt7pL52jwfB wYw0/2X9pV0AjBbi/v2oqAXEj9X1Td4qaPP995c4UlT8kvVLEcm1r4hvnzlB0/XbbjL8WlIJLdTvv s5TjLPwCsmaPh7A1Wb2ndJkZYWQMyHO5j73XhtwOYILTvJ0B8mDJSqmIJuRGxPZB2Lo9NuZ2o/4p3 n4vNDsHSe4QYw+nmIbI72p7A+XUNca2fMe9xCCJdQjMUW1SPWRqc26tMaS3wlm1fo2hne/MrzRGv0 HlQOvyJA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d5Swy-0005q0-SV; Tue, 02 May 2017 08:14:24 +0000 Received: from mail.base45.de ([2001:67c:2050:310::a:2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d5Swc-0005KO-5w for linux-mtd@lists.infradead.org; Tue, 02 May 2017 08:14:05 +0000 Received: from ip5b4049fd.dynamic.kabel-deutschland.de ([91.64.73.253] helo=lazus.yip) by mail.base45.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1d5SwB-0002Yz-AA; Tue, 02 May 2017 10:13:35 +0200 From: Alexander Couzens To: linux-mtd@lists.infradead.org Subject: [PATCH 0/3][v2] fixing 1bit hamming Date: Tue, 2 May 2017 10:13:20 +0200 Message-Id: <20170502081323.3138-1-lynxis@fe80.eu> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170313074641.28b383e7@bbrezillon> References: <20170313074641.28b383e7@bbrezillon> In-Reply-To: <20170313074641.28b383e7@bbrezillon> References: <20170313074641.28b383e7@bbrezillon> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170502_011402_488346_03913A63 X-CRM114-Status: UNSURE ( 6.32 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Boris Brezillon , Alexander Couzens , Richard Weinberger MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org v1: Use the old layout for all drivers/chips which doesn't set it explicit. v2: Only use the old layout for 1bit hamming if the layout isn't set by the driver or devicetree. Alexander Couzens (3): mtd/nand: add ooblayout for old hamming layout nand_base: use nand_ooblayout_lp_hamming_ops for 1bit hamming as default mtd: nand: davinci: set ECC algorithm explicitly for HW based ECC drivers/mtd/nand/davinci_nand.c | 4 ++- drivers/mtd/nand/nand_base.c | 77 ++++++++++++++++++++++++++++++++++++++++- include/linux/mtd/nand.h | 1 + 3 files changed, 80 insertions(+), 2 deletions(-) -- 2.12.2 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/