From patchwork Wed Sep 13 02:05:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 112392 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp373093qgf; Tue, 12 Sep 2017 19:07:28 -0700 (PDT) X-Google-Smtp-Source: ADKCNb73UvBMs74RzfT7YB9dmhXZH0O7BjYFpyRmyzbqybtnjWJq+OXZR63h7SEdZOH1x/YnsUjt X-Received: by 10.84.229.143 with SMTP id c15mr19375845plk.311.1505268448487; Tue, 12 Sep 2017 19:07:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505268448; cv=none; d=google.com; s=arc-20160816; b=NWuzcCYYv3IN/WtQcrV9ohW0UsMQJ+kUWHR7cUpREbvRyNm/seyzZ3xgt9ypNckIgF Ea/xDi39Tvq0VPNvbhs/5CCqDBc4CEr0RuViWyU2Mcg1G47xJzc9p3z4Gbeh519XPbl8 r5z8u1wdtKJMi6k8rzu015iywhWapo+h1KyNRkoidR2Fc6NZ4okGS86fHgy1a1KKmnI8 f2qPPj6eFTMpJsQZ6gwvZ7zzQosubHRHK7BvwdiFdp+QSHJq2d6k/gCCArbxRuJaKujr Fh/wtEVClL4QqTSSnTinbq4o3m5VHn7CZbwWGlHVe+Pcu21BkSFDt1eLcqqfF8LMgiYF I87w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature :dkim-filter:dkim-signature:arc-authentication-results; bh=XTtdUwFCYGOjD6Ey7bRMllNyQ9Zw8SXZSRH75gIVfHs=; b=vcGZrTr7uBiHyIGHNizoDKYFLeiqoHEL6fgban8Q7xPRR68Ge/gzG7B0+0rlJAv5PJ 4ou+6DqkH7un+ziskh1ZVpJ7fd/PHBdIdEWLSIvWGKB/U/TPswzNPxqwg9RUgIsAyAx8 BpWtLHEEul6n7Fm1/RohCkcfStB3FPzfGLR2CBUuFh7iSCuMS7uJbmREfCERztq+XjwR 5YexBusVHjg6F2cloW9D2NkQjcOBNiUQeroY80grjy5JSBJX4Kr+LB25jZnhykF9TuBJ wQHyc4Ik5ypQMH73/T3Pqf2NX9dQ64ZliD30GRrfs59cobgx2ZIuzsfwJgdXSPBC5XDL xJSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=hcjxsRhn; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=TGAxqcdf; 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 Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id h128si8700146pfb.331.2017.09.12.19.07.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Sep 2017 19:07:28 -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 header.s=bombadil.20170209 header.b=hcjxsRhn; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=TGAxqcdf; 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=XTtdUwFCYGOjD6Ey7bRMllNyQ9Zw8SXZSRH75gIVfHs=; b=hcj xsRhnhq8PHd96KGnapADYMTt4QSMBjcbKTrsUX2xWL1LW4L77wWbFH5m/iIQZ8+Nxt5Q5sQCEzhhv yJvBARpmrNvXCCgDhJPEr6aDqLMXLixtU2JciFI2BoEkspbWpcLZbelE7igc+LFLHyGjESzK645+G XaUdg1lzHV8u2N6Qz4aZGHxGaqhNZmdFHILURyAMTPI0xXfDvInfd+tgvnW4izI7Yg3ckgP5WEhZ0 UZWMk8tOE3nw0il4X/kCJB5xnjVyxLXFTRHFv3s8H3rJYNdt6YC2kxwLtuP3+heDHp+UAju2GLuCD XMjxpc1QX64dJKhnLXg4On57M8nYAxw==; 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 1drx5C-0000gy-1p; Wed, 13 Sep 2017 02:07:18 +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 1drx4X-0000Jc-Re; Wed, 13 Sep 2017 02:06:39 +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 v8D25uq9022945; Wed, 13 Sep 2017 11:05:56 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com v8D25uq9022945 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1505268357; bh=LrNxhDjmlw9oG9xlMZbz55iXFi84sFdQOTJscwM7w6s=; h=From:To:Cc:Subject:Date:From; b=TGAxqcdfwbrKRy0jf/9YqI6jAZg8+h3KPhSRXN9ok8eF/yFv0XIUJNo1hpoiyfP5a Mo9Iy3GJmMV0UvR6WXGmkkWLZWNMPuH5nKITO29Ib+3IjSrrN2PzJBSal221thR7x4 lGAf53zr30STpoCjGkcm+FoY382TT5DXN404pnX45U3yR2MV6L/ldRt493G6vhvrg+ 2DFX3dtCYY7b8yuL7knoTtsUf8/rt68zZI8RglCsrFf4ezTwQ4QGqIGeA8jLPLftFn GN6gvfRTYY5st9tm9MrgJWLlliUbAtRY3s8LNPb7nMGrQw2wQLH4n39/TnzSzPoWdY KaO1R3gDOqCIQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-mtd@lists.infradead.org Subject: [PATCH v2 0/2] mtd: nand: introduce NAND_ROW_ADDR_3 flag and improve Denali driver Date: Wed, 13 Sep 2017 11:05:49 +0900 Message-Id: <1505268351-31941-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-20170912_190638_304080_A8300515 X-CRM114-Status: UNSURE ( 8.80 ) 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+patch=linaro.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. Changes in v2: - Fix build error 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(-) -- 2.7.4 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/