From patchwork Tue Sep 12 02:37:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 812671 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="r5fcMrk6"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.b="yxfc03wb"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xrpvW082bz9s7F for ; Tue, 12 Sep 2017 12:41:11 +1000 (AEST) 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=Vn4Rl5pdiyrtWoZWel5iyjdLnLo7gkbA/ZiObOPeWAM=; b=r5f cMrk6ElywUbpMAjPcPsa8BvWU7ezG69DLDE3zE05p305uebCaF5HnI1D3IT1P7LL6kx8VrVurCrRm 5JA/2Yt1s6kVfN81V1p1iRWY2Ec3aVQq8dvwuX8GScUlCe4f8X8aqIZZF0nIsTGIJFxZ1vrmY/4PJ omz5Uz+XVMP9Nr3QqGLIYRBaTDE1bVlN6HmHeoY9QLzVF1JNrEg6zBrQF9ymSbxtQMQxAP+kenlpE aGgevEZpC/+nkKPX9h+v4dMJXpwrXm3HSJnyFf21r88JNiLgsI+kjWgGS8Md9+MDGwPqWk9pkhqKe 0y/ZKSdvOuoXGd69/SJvwo81ty8XIGA==; 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 1drb8J-0007gO-1h; Tue, 12 Sep 2017 02:41:03 +0000 Received: from conuserg-12.nifty.com ([210.131.2.79]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1drb62-00050U-9j; Tue, 12 Sep 2017 02:38:46 +0000 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id v8C2buJW001020; Tue, 12 Sep 2017 11:37:56 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com v8C2buJW001020 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1505183877; bh=MRS3So5ATj0XKlbhzEgZFKUP448dsitUVa15LMThfJs=; h=From:To:Cc:Subject:Date:From; b=yxfc03wbmwQ5dT5LgFLoAK92XBL6UcshdvZoxB3BNGvaTP7Zo2F6q0tDFe7DaAFL4 W2wBReV8G+a2k5gxCw8pfFt0/4nhGaxCA9VDPlMaE7A9RYFqdV+LgFNK21UpSiM0hr lxv9T9+Nx3kzg52fgjbQh3YdoPjsqQIHoLYuW2GpelbY4Cn0HWO7sWO5a8iq+YHS19 2itHI1tFzxosjnW8jvQlfKdvJo7980O6KWwVDiHMV1LaT80KEc/pgStYdmwSLXWD9h MsQZZhU2FVwj9fZ87wRRYcTA55QXS7DPHAVH1zQewMfYC/L+xIbJRuSZOwO1G7FeYn tO+d/0cyuU5iQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-mtd@lists.infradead.org Subject: [PATCH 0/2] mtd: nand: introduce NAND_ROW_ADDR_3 flag and improve Denali driver Date: Tue, 12 Sep 2017 11:37:29 +0900 Message-Id: <1505183851-29355-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-20170911_193842_830873_247D28E5 X-CRM114-Status: UNSURE ( 8.14 ) 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_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 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 , Richard Weinberger , Wan ZongShun , Marek Vasut , Josh Wu , linux-kernel@vger.kernel.org, Wenyou Yang , Masahiro Yamada , Cyrille Pitchen , Brian Norris , David Woodhouse , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Currently, Denali NAND driver always expects 3 row address cycle devices because the driver init code hard-code the register setting. I will fix it in 2/2. Many drivers check chip->chipsize if the third row address cycle is needed or not. This is not nice because 32MB, 128MB are magic numbers. nand_scan_ident can decide it and provide a driver-friendly flag. 1/2 is touching verious drivers. I hope Acked-by from driver maintainers if this change looks good. Masahiro Yamada (2): mtd: nand: introduce NAND_ROW_ADDR_3 flag mtd: nand: denali: support two row address cycle devices drivers/mtd/nand/atmel/nand-controller.c | 3 +-- drivers/mtd/nand/au1550nd.c | 3 +-- drivers/mtd/nand/denali.c | 4 ++-- drivers/mtd/nand/diskonchip.c | 3 +-- drivers/mtd/nand/hisi504_nand.c | 3 +-- drivers/mtd/nand/mxc_nand.c | 3 +-- drivers/mtd/nand/nand_base.c | 9 +++++---- drivers/mtd/nand/nuc900_nand.c | 2 +- include/linux/mtd/rawnand.h | 3 +++ 9 files changed, 16 insertions(+), 17 deletions(-)