From patchwork Mon Dec 30 16:51:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 1216486 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Ygwe6AdY"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="uLN/ft+v"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47mk6J2646z9sPc for ; Tue, 31 Dec 2019 03:54:00 +1100 (AEDT) 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=baPGQMZK2lWpi5RhkuZiiR/OWp7S8zqSH7ZPsib5gZw=; b=Ygwe6AdYsoourF xQv6KZxb0lx5k6zmHH0tEl3CR+SJKbYWkgwmOriWXT9MCtrYUPpCOlMXEA7nD3BqQ7H6BRKLNZhgf 7biwQjqbr4aan6WpLqz1ZQwozN5L2wDlro54lWw88WtRjJyXLVsv54g8XjouS0YRgxkYBV9geEx0F PAZAKUogn5ejxa0reIv8v+CUjARk2Gwo+2S0AqcRTbwVV3xhz0UC5vuMtMyp6tODqSD4awlmtc9Bf ESivPWQO/dyy3Zhv32VikgCQypHHcslXgTSZbrJAAbtTYDY/lP/+yRlfhjGsui5bSq3DFN+/fiSeM RmDrVVDPeWRwDgm0Jmlg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ilyIY-0005DC-Dw; Mon, 30 Dec 2019 16:53:42 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ilyHB-0003sC-67 for linux-mtd@bombadil.infradead.org; Mon, 30 Dec 2019 16:52:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0Jih4qQ9A5oDp59to2utgAc/6bZwD/Gn92WdoGBFDHs=; b=uLN/ft+vK61Zo5NQs4XN8YUEsA P8YzCi1bfwUBNbfHn5TaU0e/A5SCyXZZrxoRzeecT3wLPOs62ADSc1NvZ+DUua/5N0E0v7AtypDhx 7UuK0ZXrVYbM7MgYDjiqmfA30KYku3wBq36oXvA1UUaxtPO6iUo7Le3E5t0u/qunMONf+Lr4IW95t XkLd4RAt3YvdFgQnDwwK9aJ6BJjsOKcE/o8pru/kc8ANXyNzQwSi0Gv8/UafrotQsFT/2cAuhnWu7 yKGSIDkrTMbWhLe2fpZdI6WdX2QnJbQF9m95FOpFu5/SrAIz7hzKvgcr8Yqk68uUvtCLXwpsh5xbZ HCaqGftA==; Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ilyH8-000502-Lw for linux-mtd@lists.infradead.org; Mon, 30 Dec 2019 16:52:15 +0000 X-Originating-IP: 91.224.148.103 Received: from localhost.localdomain (unknown [91.224.148.103]) (Authenticated sender: miquel.raynal@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 100CAC0007; Mon, 30 Dec 2019 16:51:30 +0000 (UTC) From: Miquel Raynal To: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Subject: [PATCH 0/8] MLC in SLC mode Date: Mon, 30 Dec 2019 17:51:21 +0100 Message-Id: <20191230165129.11925-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.2 on merlin.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [217.70.183.198 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Boris Brezillon , Thomas Petazzoni , Miquel Raynal Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Hello, This series has been lying since a long time in Boris tree, it is clean enough to be upstreamed now. This work is based on the "MTD partition handling rework" patch. It basically allows to work "safely" with MLC NANDs, details inside. Cheers, Miquèl Boris Brezillon (8): mtd: rawnand: toshiba: Add a specific init for TC58TEG5DCLTA00 mtd: rawnand: Define the "distance 3" MLC pairing scheme mtd: rawnand: toshiba: Set the pairing scheme for TC58TEG5DCLTA00 mtd: Add support for emulated SLC mode on MLC NANDs dt-bindings: mtd: partition: Document the slc-mode property mtd: partitions: ofpart: Parse the slc-mode property mtd: cmdlinepart: Add an slc option to use SLC mode on a part ubi: Relax the 'no MLC' rule and allow MLCs operating in SLC mode .../devicetree/bindings/mtd/partition.txt | 3 + drivers/mtd/mtdcore.c | 189 ++++++++++++++++-- drivers/mtd/mtdpart.c | 54 ++--- drivers/mtd/nand/raw/internals.h | 3 + drivers/mtd/nand/raw/nand_base.c | 50 +++++ drivers/mtd/nand/raw/nand_toshiba.c | 14 ++ drivers/mtd/parsers/cmdlinepart.c | 12 +- drivers/mtd/parsers/ofpart.c | 3 + drivers/mtd/ubi/build.c | 5 +- include/linux/mtd/mtd.h | 7 +- include/linux/mtd/partitions.h | 2 + include/uapi/mtd/mtd-abi.h | 1 + scripts/pnmtologo | Bin 0 -> 22416 bytes 13 files changed, 300 insertions(+), 43 deletions(-) create mode 100755 scripts/pnmtologo