Message ID | 20221229181526.53766-1-samuel@sholland.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2529803wrt; Thu, 29 Dec 2022 10:16:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXvU65dRmmOZXaBeVBa2aZplbeKY6c0vwnAHq+IkoURPi8c15qEDxB9yjU9va1q7kiQncIlM X-Received: by 2002:a17:902:8f92:b0:18f:a27c:fe with SMTP id z18-20020a1709028f9200b0018fa27c00femr31328159plo.55.1672337794166; Thu, 29 Dec 2022 10:16:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672337794; cv=none; d=google.com; s=arc-20160816; b=JhDxNk9/p2Qzf5gjtI4BQoY5EdKjamuGJB8bndss5luMZVy7uu+PWHfKoA5nacpNea 45smT0HIFnpp+x65D5c3aw5k/9AQvd9GB68beLgSDXoEzqjmkvRZJFoZPL5hrH/3VMFP cT0NBIej2VnQD5Vac+4iWYV4OuR4k/JF4VpkvxBNC4mUKZuebPlP78LJ/mH9Tz/zDykf bGNLLZCqgbKcdPd/1ycmM9wvAoqzASlnqefcTl8RkzxBCiUbDB+eYoVwZrIBg6l6osZS dXziFh8QdaeUlkjhUOVSbeH7/aIo1+oaJYQ9tueOnxXKuLqpyGb/MgJRfvFIw2n5Ye1m y2Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=7ZnnX15h1ezrtWz76vu0WOxPlqy17P9/bTAqG1Jqm8A=; b=L64QiCi4Q7f9Iin3PpbPLC6q8zYkchP+8VTZJ9AGFOsyTdi9lPxYZm/wL1ogf5Ah5V gLEpxWArvAr/AxylIIVMFa/YO2MhuiAOrjga7tNlusr7QC5cdsasPXXV6J2OG+5hqru3 6el9PrjxnOb6avVDix8ORzirza8FTy0OQmWs/FA5rN2F8RjC5zt3fBxtr65OX4KE5MPD rGr1boTIXaeOF9o457nLk2K+d+RM4o+c9RrC8YCt9eqiswJhBToPHAqh8cLiXmEgNREr w3rKGGMg3eqRMH2my0CjABmCND5sf5e5KIWUFiRQFgZVstyCU5i1qXvpzIDbUj58of1K fnJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b=rJvbNw70; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="hsgpT/wy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y16-20020a170902b49000b00186abd0c784si18376093plr.217.2022.12.29.10.16.21; Thu, 29 Dec 2022 10:16:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b=rJvbNw70; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="hsgpT/wy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233718AbiL2SPd (ORCPT <rfc822;eddaouddi.ayoub@gmail.com> + 99 others); Thu, 29 Dec 2022 13:15:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229831AbiL2SPb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 29 Dec 2022 13:15:31 -0500 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7323813CD3 for <linux-kernel@vger.kernel.org>; Thu, 29 Dec 2022 10:15:30 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 2E28332008FF; Thu, 29 Dec 2022 13:15:29 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 29 Dec 2022 13:15:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t=1672337728; x=1672424128; bh=7ZnnX15h1ezrtWz76vu0WOxPl qy17P9/bTAqG1Jqm8A=; b=rJvbNw70l3N+VRXKsAkKi2rMSIheT3BGiT+PgUT/8 pEw7Zswjwt9Vw51KqvfY1EYZh0UbZMkvwycGNzrfx4PKaMvVPOYDqYkcGsk6xBvp BvyKwtHjJwJiGRhkGUnHy9FdYxrmIeAlQWJofJkmAXdzLwr2pxohFc/2D9G+948U xhs0P//UNUbkQKTKndtgow8Fk2Sc00523D+D6e90GX2G6jf02KkLhdSIaCcNCS8U Vtir197MXUf2MNKB11Obi38wbGIfioGSZg3OpBvMB+bUNpoRay6FiSpkAQ1cNpSb je6nL2/CK0Cx491Hh6yz/6mHDgkbSAKWj4Md6/hUyrAxw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1672337728; x=1672424128; bh=7ZnnX15h1ezrtWz76vu0WOxPlqy17P9/bTA qG1Jqm8A=; b=hsgpT/wy9I3pFv8aaDrH8/UuB+r/nNkZ2VBEJ6CAPPw6Dag1uoA pbZGioHT/Q+FIpP6L+J+zhbrkz2N9itg+bLynbuazqv3A3K6i3gPDsaFHBV4LmAf 9Ewt6CpkthnBMq4vqyKHIMrq3WyB60yg/a5JQhd5aCqPbqGCFcJcBXT9+iMUo0iB ejH7hDCDmomUA9lffIuFluc4lnQQS0un6UfQxioe2LTf5wFn3Wv66ncm6TAH3aXH +5WduoXDvXGX894L/5hyqTbAgbbWUEMeOxEdrNoDh3LlU6BeU/tBMReBeMm5Q+MK hUq+MnH596Xqvt6AaGNaguwKmPfrtTLfgRQ== X-ME-Sender: <xms:P9mtY388Hhu4itoTzQZIt0pAAQjNRL2aCWCEjOH5xSLSdJTiU66F3g> <xme:P9mtYzv4Q-Um-ze7O3K1OLwO01gB784EnNpqWK0tsO-amn6WZF7PwHQDgxc_2hxAp TxpohAgbDCDgYbrLA> X-ME-Received: <xmr:P9mtY1ALuqbZ6GFQMCVrHKZ_IJrscgQrk-gMPZhymJ010pxauaznyiVJwtaSmwBhm4sW41RFJ577rESdx7KGAMCKonDq6ILyUI__ywzm2QGD-B8GW5aAvjWO5VexLZ9cb5sk4A> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrieeggdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepkeevlefhjeeuleeltedvjedvfeefteegleehueejffehgffffeekhefh hfekkeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: <xmx:P9mtYzcdBDa7fJmrEW2S0fy9MgcsxvbNZN0Kc0ra11atUDXczPiuvQ> <xmx:P9mtY8Oe946Vb4VC4m8XDld8kOX4xQMn8fdeS42Y2YRDopbUu7bNHQ> <xmx:P9mtY1lnvE5otaf8EDN-sL-B-GKLlC5JMXWz3uUDkW9beM3N9r2Bkg> <xmx:QNmtY9Fn39z5_iN-3TAmYb0rLhp8290xUSe1ohsM3C87jURzL6faHQ> Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 29 Dec 2022 13:15:27 -0500 (EST) From: Samuel Holland <samuel@sholland.org> To: Miquel Raynal <miquel.raynal@bootlin.com>, Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com>, Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com> Cc: Boris Brezillon <bbrezillon@kernel.org>, Samuel Holland <samuel@sholland.org>, Brian Norris <computersforpeace@gmail.com>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 0/7] mtd: rawnand: sunxi: Bug fixes and cleanup Date: Thu, 29 Dec 2022 12:15:19 -0600 Message-Id: <20221229181526.53766-1-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753573274952149701?= X-GMAIL-MSGID: =?utf-8?q?1753573274952149701?= |
Series |
mtd: rawnand: sunxi: Bug fixes and cleanup
|
|
Message
Samuel Holland
Dec. 29, 2022, 6:15 p.m. UTC
I have an A33 tablet with MLC NAND, and I wanted to use mainline Linux to dump the NAND. To do that, I updated this driver's ECC ops to fully utilize the hardware for ECC and scrambling. This made the driver compatible with the existing (scrambled) on-flash bad block map, and I was able to read the full NAND contents. This series contains some initial bug fixes and cleanup from that effort. The changes to the ECC ops will come as a separate series. Samuel Holland (7): mtd: rawnand: sunxi: Clean up chips after failed init mtd: rawnand: sunxi: Remove an unnecessary check mtd: rawnand: sunxi: Remove an unnecessary check mtd: rawnand: sunxi: Fix ECC strength maximization mtd: rawnand: sunxi: Fix the size of the last OOB region mtd: rawnand: sunxi: Update OOB layout to match hardware mtd: rawnand: sunxi: Precompute the ECC_CTL register value drivers/mtd/nand/raw/sunxi_nand.c | 132 ++++++++++-------------------- 1 file changed, 42 insertions(+), 90 deletions(-)