From patchwork Mon Jun 5 23:21:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 103110 Delivered-To: patch@linaro.org Received: by 10.182.29.35 with SMTP id g3csp1009058obh; Mon, 5 Jun 2017 16:27:41 -0700 (PDT) X-Received: by 10.98.69.219 with SMTP id n88mr20806648pfi.93.1496705261790; Mon, 05 Jun 2017 16:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496705261; cv=none; d=google.com; s=arc-20160816; b=xW06w+x3jDYMOk8Pc2+dsk4uVx1WOar2s68WaG7XJt0lETXZEljhs1lw5PWsXZL56S GrsOEwgmczBhIsQa23QL6yRMoL2ANoT19JB1WiEwcExt875Kom85903h/aKrYf6DMEex 0uU899r60r76DsBHDtVb5xU90enTsXl/ZucTWKn/1i0VouOXhAD1iEhyiXYJqsCn9SgA wZWy2OGljlFXv/URTr7XtiHITLZj+6eQ+sM1DEIqm0Ywo87fB+fnzVxxXJAiN7giWu93 osOouKLwikckEsicj3xwV2djUOM6qnn6XEetyuNIg4jBtaX2zN8epTVAoVjVeJHQuxRT QpZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=NJU/KUqUbTFMuUpxdyIdzEXMS0xNyc0H0NFiNtIWmT8=; b=s/6kV2GTCUczDU9Xx2YdzbxiBIoTncgCfehvFcb/syYYcyDa9/mYSRlOR1l4z2ng5i fdfBPJ7xbOKY0lc74lDsUnPC5IvHEJZW+RNFzcmsEJ5eNe5vtchPvh2DZdYYS/LrYlo9 KKGp4xhTJNtFtOD115QpnSNgnQontPsHnBZJ+jowlc1dlL7i/Taa2lvEhWFDAIm1+Qhu hv9ceurxa4c7XwEn9KppgJW1vq7bPJm6j/zWbcqZoQFLKwcCnUMoS/6q6gWkfYpnjlDG 1YJguCEvbq5ccdKek+OluVgslPHh1lbsYDqccwMKmnC8kVsCC7uoW8KwG2wHNwFw+HSt ImCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 84si31596096pfa.395.2017.06.05.16.27.41; Mon, 05 Jun 2017 16:27:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751451AbdFEX1Y (ORCPT + 25 others); Mon, 5 Jun 2017 19:27:24 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:32307 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751340AbdFEXZW (ORCPT ); Mon, 5 Jun 2017 19:25:22 -0400 Received: from grover.sesame (FL1-118-110-19-204.osk.mesh.ad.jp [118.110.19.204]) (authenticated) by conuserg-10.nifty.com with ESMTP id v55NMD5a004412; Tue, 6 Jun 2017 08:22:26 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com v55NMD5a004412 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1496704947; bh=NJU/KUqUbTFMuUpxdyIdzEXMS0xNyc0H0NFiNtIWmT8=; h=From:To:Cc:Subject:Date:From; b=TRsoSsHk9pzsulxSIBDJ8EC00lvTTs78qVCiZsWISQvLwkzeP2GbFgXNSAQmZOVp8 8m7/M54kk8atjIGPPjkLH6Dc2uldunv2dZOOKHiNUDZGj7SbLXzRzGpPv6wUloidSW 6Ma0SrlW3uVacECdoUgsczu0ak75QPzruB+CD1gU1LImDN7Lm9T78JcNktKBlNr2M6 Nus/01n+JZ0NAJYNgjDe7Mr73MdgZhjzl76QpFgnJMN9EL4VYHo/28KGeKsamtpvJp g+FN9RAcQls5kU1wB3dykdk5PD2qoNidX+DgSP5iqaG+zVvo4+Nntrhzo1GFe9lEWC Whb8Am3I1usSg== X-Nifty-SrcIP: [118.110.19.204] From: Masahiro Yamada To: linux-mtd@lists.infradead.org Cc: Enrico Jorns , Artem Bityutskiy , Dinh Nguyen , Boris Brezillon , Marek Vasut , Graham Moore , David Woodhouse , Masami Hiramatsu , Chuanxiao Dong , Jassi Brar , Masahiro Yamada , Cyrille Pitchen , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Brian Norris , Richard Weinberger , Rob Herring , Mark Rutland Subject: [PATCH v4 00/23] mtd: nand: denali: Denali NAND IP patch bomb Date: Tue, 6 Jun 2017 08:21:39 +0900 Message-Id: <1496704922-12261-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series intends to solve various problems. [1] The driver just retrieves the OOB area as-is whereas the controller uses syndrome page layout. [2] Many NAND chip specific parameters are hard-coded in the driver. [3] ONFi devices are not working [4] It can not read Bad Block Marker Outstanding changes are: - Fix raw/oob callbacks for syndrome page layout - Implement setup_data_interface() callback - Fix/implement more commands for ONFi devices - Allow to skip the driver internal bounce buffer - Support PIO in case DMA is not supported - Switch from ->cmdfunc over to ->cmd_ctrl 18 patches were merged at v2. 11 patches were merged at v3. Here is the rest of the series. v1: https://lkml.org/lkml/2016/11/26/144 v2: https://lkml.org/lkml/2017/3/22/804 v3: https://lkml.org/lkml/2017/3/30/90 Masahiro Yamada (23): mtd: nand: denali_dt: clean up resource ioremap mtd: nand: denali: use BIT() and GENMASK() for register macros mtd: nand: add generic helpers to check, match, maximize ECC settings mtd: nand: denali: avoid hard-coding ECC step, strength, bytes mtd: nand: denali: remove Toshiba and Hynix specific fixup code mtd: nand: denali_dt: add compatible strings for UniPhier SoC variants mtd: nand: denali: set NAND_ECC_CUSTOM_PAGE_ACCESS mtd: nand: denali: do not propagate NAND_STATUS_FAIL to waitfunc() mtd: nand: denali: remove unneeded find_valid_banks() mtd: nand: denali: handle timing parameters by setup_data_interface() mtd: nand: denali: rework interrupt handling mtd: nand: denali: fix NAND_CMD_STATUS handling mtd: nand: denali: fix NAND_CMD_PARAM handling mtd: nand: denali: switch over to cmd_ctrl instead of cmdfunc mtd: nand: denali: fix bank reset function to detect the number of chips mtd: nand: denali: use interrupt instead of polling for bank reset mtd: nand: denali: propagate page to helpers via function argument mtd: nand: denali: merge struct nand_buf into struct denali_nand_info mtd: nand: denali: use flag instead of register macro for direction mtd: nand: denali: fix raw and oob accessors for syndrome page layout mtd: nand: denali: skip driver internal bounce buffer when possible mtd: nand: denali: use non-managed kmalloc() for DMA buffer mtd: nand: denali: enable bad block table scan .../devicetree/bindings/mtd/denali-nand.txt | 13 + drivers/mtd/nand/denali.c | 1701 +++++++++----------- drivers/mtd/nand/denali.h | 294 ++-- drivers/mtd/nand/denali_dt.c | 54 +- drivers/mtd/nand/denali_pci.c | 15 +- drivers/mtd/nand/nand_base.c | 219 +++ include/linux/mtd/nand.h | 35 + 7 files changed, 1235 insertions(+), 1096 deletions(-) -- 2.7.4