{"id":812668,"url":"http://patchwork.ozlabs.org/api/patches/812668/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-mtd/patch/1505183851-29355-3-git-send-email-yamada.masahiro@socionext.com/","project":{"id":3,"url":"http://patchwork.ozlabs.org/api/projects/3/?format=json","name":"Linux MTD development","link_name":"linux-mtd","list_id":"linux-mtd.lists.infradead.org","list_email":"linux-mtd@lists.infradead.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1505183851-29355-3-git-send-email-yamada.masahiro@socionext.com>","list_archive_url":null,"date":"2017-09-12T02:37:31","name":"[2/2] mtd: nand: denali: support two row address cycle devices","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"ff238489c806de20d54725419ce15536a037ede9","submitter":{"id":65882,"url":"http://patchwork.ozlabs.org/api/people/65882/?format=json","name":"Masahiro Yamada","email":"yamada.masahiro@socionext.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-mtd/patch/1505183851-29355-3-git-send-email-yamada.masahiro@socionext.com/mbox/","series":[{"id":2602,"url":"http://patchwork.ozlabs.org/api/series/2602/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-mtd/list/?series=2602","date":"2017-09-12T02:37:31","name":"mtd: nand: introduce NAND_ROW_ADDR_3 flag and improve Denali driver","version":1,"mbox":"http://patchwork.ozlabs.org/series/2602/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/812668/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/812668/checks/","tags":{},"related":[],"headers":{"Return-Path":"<linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org; spf=none (mailfrom)\n\tsmtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133;\n\thelo=bombadil.infradead.org;\n\tenvelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"rJfN+BQM\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=nifty.com header.i=@nifty.com\n\theader.b=\"oUqF4EfT\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrpsW6KrHz9s7F\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 12:39:27 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1drb66-00058G-DZ; Tue, 12 Sep 2017 02:38:46 +0000","from conuserg-12.nifty.com ([210.131.2.79])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1drb62-00050W-9S\n\tfor linux-mtd@lists.infradead.org; Tue, 12 Sep 2017 02:38:44 +0000","from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp\n\t[153.142.97.92]) (authenticated)\n\tby conuserg-12.nifty.com with ESMTP id v8C2buJY001020;\n\tTue, 12 Sep 2017 11:37:58 +0900"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References:\n\tIn-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID:\n\tContent-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc\n\t:Resent-Message-ID:List-Owner;\n\tbh=4/djSP+dvJpde51UHhBM/YUsiZRst0Mh4wOzk5YQCgw=;\n\tb=rJfN+BQMjplxZofFvsoO95jElL\n\tzLjcANHlaxv1PDW9pSm6CppEGJC4K+Z5ghEhywz6RCEOlHsLvbwNpAc22qwdbr8XDbzW+2BYSZ/dS\n\t+xNHTS09EkoUHk2DF5LA5Wwo2Y4JpyoRkdnpi76JV2lW5ot+LTb9B1PNGHX9i5sBSZe6ZgbERISsu\n\tMYxzXT+QY/Ib7R/gOxME11YROOxrai+uYvBkkjBetivZUw8lHVd7oMnTuuYvdj5tITEU96mNnw8Xp\n\tQ2qzVI2HNvB7Jgx7kx6bbH0liMOP3xn526Pnu/td3KpHStfOaCXaW8E5nv4IpivcmwwBqOn1Gpnov\n\tnNysDr3g==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com;\n\ts=dec2015msa; t=1505183879;\n\tbh=FjwRPyBhqZgrJZX0u4hXA2G4/LNObTY+yJ6KeNredB8=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=oUqF4EfTnePycJeSQ+bh/OaYaGd1fMGoaPEUoVUUk8djs9K1eddYhKrxOjE+Tv9ki\n\tq0jKFyEfqi3IbAAI1+MahPvhk8NSpMfppdUG/tHVn6cQulViBgwtgEhcajfJYtpynJ\n\tP16LfUsGPt9RkdVPH6qvfFcII5DY9FsGGptV3jAQ3ICxKdwezIGnoVvuTs0OGRhILX\n\tH4fVWjwgrW7PTKHr+79Z19eXwFTtVGJ/eymjoP4+fhZo7RYyKLM5a0Vs0Vbq07jJQP\n\teSC73ihxeH2XdJzep6+bSiJIn4zmPDVRLItZsRoRTNYJo0OKgFRvKSR/PS3Zn//+hF\n\tsrccA3Ct1ceCQ=="],"DKIM-Filter":"OpenDKIM Filter v2.10.3 conuserg-12.nifty.com v8C2buJY001020","X-Nifty-SrcIP":"[153.142.97.92]","From":"Masahiro Yamada <yamada.masahiro@socionext.com>","To":"linux-mtd@lists.infradead.org","Subject":"[PATCH 2/2] mtd: nand: denali: support two row address cycle devices","Date":"Tue, 12 Sep 2017 11:37:31 +0900","Message-Id":"<1505183851-29355-3-git-send-email-yamada.masahiro@socionext.com>","X-Mailer":"git-send-email 2.7.4","In-Reply-To":"<1505183851-29355-1-git-send-email-yamada.masahiro@socionext.com>","References":"<1505183851-29355-1-git-send-email-yamada.masahiro@socionext.com>","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170911_193842_736923_F33C7BBA ","X-CRM114-Status":"UNSURE (   9.64  )","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:\n\tContent analysis details:   (-1.2 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid","X-BeenThere":"linux-mtd@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"Linux MTD discussion mailing list <linux-mtd.lists.infradead.org>","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-mtd/>","List-Post":"<mailto:linux-mtd@lists.infradead.org>","List-Help":"<mailto:linux-mtd-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>","Cc":"Boris Brezillon <boris.brezillon@free-electrons.com>,\n\tMarek Vasut <marek.vasut@gmail.com>,\n\tRichard Weinberger <richard@nod.at>, linux-kernel@vger.kernel.org,\n\tMasahiro Yamada <yamada.masahiro@socionext.com>, \n\tCyrille Pitchen <cyrille.pitchen@wedev4u.fr>,\n\tBrian Norris <computersforpeace@gmail.com>,\n\tDavid Woodhouse <dwmw2@infradead.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-mtd\" <linux-mtd-bounces@lists.infradead.org>","Errors-To":"linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"},"content":"The register TWO_ROW_ADDR_CYCLES specifies the number of row address\ncycles of the device, but it is fixed to 0 in the driver init code\n(i.e. always 3 row address cycles).\n\nReflect the result of nand_scan_ident() to the register setting\nin order to support 2 row address cycle devices.\n\nSigned-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>\n---\n\n drivers/mtd/nand/denali.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)","diff":"diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c\nindex 3087b0b..aefdc83 100644\n--- a/drivers/mtd/nand/denali.c\n+++ b/drivers/mtd/nand/denali.c\n@@ -1137,8 +1137,6 @@ static void denali_hw_init(struct denali_nand_info *denali)\n \n \tiowrite32(0xffff, denali->reg + SPARE_AREA_MARKER);\n \n-\t/* Should set value for these registers when init */\n-\tiowrite32(0, denali->reg + TWO_ROW_ADDR_CYCLES);\n \tiowrite32(1, denali->reg + ECC_ENABLE);\n }\n \n@@ -1379,6 +1377,8 @@ int denali_init(struct denali_nand_info *denali)\n \t\t  denali->reg + PAGES_PER_BLOCK);\n \tiowrite32(chip->options & NAND_BUSWIDTH_16 ? 1 : 0,\n \t\t  denali->reg + DEVICE_WIDTH);\n+\tiowrite32(chip->options & NAND_ROW_ADDR_3 ? 0 : TWO_ROW_ADDR_CYCLES__FLAG,\n+\t\t  denali->reg + TWO_ROW_ADDR_CYCLES);\n \tiowrite32(mtd->writesize, denali->reg + DEVICE_MAIN_AREA_SIZE);\n \tiowrite32(mtd->oobsize, denali->reg + DEVICE_SPARE_AREA_SIZE);\n \n","prefixes":["2/2"]}