From patchwork Wed Apr 19 07:06:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 97608 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp185767qgf; Wed, 19 Apr 2017 00:08:21 -0700 (PDT) X-Received: by 10.99.103.193 with SMTP id b184mr1547036pgc.35.1492585701597; Wed, 19 Apr 2017 00:08:21 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id w20si1522073pgj.196.2017.04.19.00.08.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Apr 2017 00:08:21 -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; dkim=neutral (body hash did not verify) header.i=@nifty.com; 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: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:In-Reply-To: References:List-Owner; bh=SJ8q4w4FrF/lPAPlbWJO9DcKzABtThJ0osiTeRh4078=; b=i7B TOo+Ucn6vFdc00LBy9tZgQsMtWVBEt6f0agXEjnWsIX8V8KXKO6rOqFg3Px5+gBcVFE7hcxKtqy3b /6vBQCsNOQGD3M30SvupXM/OE3kAynozxbHZiaqTlrvvuL85xOgcNT1ezGOB/0wDLezKPgT+KBS+5 IcY8/Xv+TZVv1uW8usincKP5xs3QuY7FQi8GV34Izh9ad92fR8BeNY/4je5aYHyGChKcl7aK7gYMX QNZ8dukPw+C986kvaHIi+5YQdFAoCNSeFd2EbqKO/Y/o61b3lkWYSZp9yk9Y1dTOAHj4u4LkCyecN 2Q/mFVweMCoQgQQJa8a2ugIFELsdIEQ==; 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 1d0jit-0008QJ-9B; Wed, 19 Apr 2017 07:08:19 +0000 Received: from conuserg-10.nifty.com ([210.131.2.77]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d0jie-0008DT-C4 for linux-mtd@lists.infradead.org; Wed, 19 Apr 2017 07:08:07 +0000 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id v3J771hW010893; Wed, 19 Apr 2017 16:07:01 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com v3J771hW010893 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1492585622; bh=4im0vd+nl/r39vHsuFftwIjDoxkRGW7lLFUx5V4PzSU=; h=From:To:Cc:Subject:Date:From; b=Al0kC6ZD74jvZpPgNidsQ3ObxZx8aKFrpvaWcXna3FwFBSgP9JY5SulXd/QINdBmv ItX8XC6utyeyZOGNPNmmbq/7TRYW5udRXsJz9t9fee3kCGZD0j6AsJcMUK32KQMgFM F0VOXJzY3xCxNm1vRmXLlKcbFxBXc27WMDDK9ntZlLXLf72SOwcEXhAR82VjF11xri xGU9a2JLVvdeBXL21wXHqqCZGyCgAPm3CV+t4c/7zUBk7mnszxYuaYT2kKwCVUIZD4 H73gybsj2i//1UufFZN+R7wQ9ZrZEzsznlT00/yp43QjGKb9f/t9Va8PSVPHYOMiuz DxHTWNxRqkcsA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-mtd@lists.infradead.org Subject: [PATCH 0/2] mtd: nand: Add generic helpers check, match, maximize ECC settings Date: Wed, 19 Apr 2017 16:06:56 +0900 Message-Id: <1492585618-13655-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170419_000804_779092_D047EB50 X-CRM114-Status: UNSURE ( 7.78 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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: Mark Rutland , Boris Brezillon , Richard Weinberger , Dinh Nguyen , Masahiro Yamada , Artem Bityutskiy , Cyrille Pitchen , linux-kernel@vger.kernel.org, Marek Vasut , devicetree@vger.kernel.org, Rob Herring , Masami Hiramatsu , Chuanxiao Dong , Jassi Brar , Brian Norris , Enrico Jorns , David Woodhouse , Graham Moore MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org This series is based on the discusson: https://patchwork.kernel.org/patch/9653063/ Before sending the whole v4 series for the Denali driver, here is my proposal. 1/2: add generic helpers to the NAND framework 2/2: is an example. Please see how those 3 helper functions are used. Please do not apply this. Masahiro Yamada (2): mtd: nand: add generic helpers to check, match, maximize ECC settings mtd: nand: denali: show how to use generic helpers (do not apply) .../devicetree/bindings/mtd/denali-nand.txt | 17 + drivers/mtd/nand/denali.c | 1693 +++++++++----------- drivers/mtd/nand/denali.h | 297 ++-- drivers/mtd/nand/denali_dt.c | 29 +- drivers/mtd/nand/denali_pci.c | 11 +- drivers/mtd/nand/nand_base.c | 178 ++ include/linux/mtd/nand.h | 31 + 7 files changed, 1178 insertions(+), 1078 deletions(-) -- 2.7.4 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/