Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6302403rwl; Thu, 29 Dec 2022 10:24:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXsVD+0nAQaCXyb1YFkIFycUtT8DINRr7svXuH4rE1SY1LK2qEl8CjWR7PKVGa2PfcV7uHi6 X-Received: by 2002:a05:6402:b91:b0:487:1a83:a6a0 with SMTP id cf17-20020a0564020b9100b004871a83a6a0mr8201976edb.13.1672338269338; Thu, 29 Dec 2022 10:24:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672338269; cv=none; d=google.com; s=arc-20160816; b=OTnUYhajwr45+BXGfSR3SqByv2cONce+dcSZ89a/0EE11IUJ6GLhxucUF2fKeX0IVD gvpBM8cKkvF4sVDhfCW8GSJ6ueE14mFh/ZPv8ZKLAvgUyhkNvRFXYxYj3Zon6dO4Ho9T gYHGkhIS55MQf/+RvRnDCbXME5b9AkrqpqoQECyhZgnTBq5wvVtj5GiRDMjPxyAb/SAZ HOYaOprNEusECjF+ERTKyWeR8Gqkh/PK6VAex2sxIGjhqbqC+ZTioa5GRl/4w4ilCY6H IauVTYZf5CW7UnOnOlYv01qLg/MuhWeZIFbvSwWE2hHFwoBbrwh7U+vDhAK2l+BcDeYL NpNA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ee33-20020a056402292100b004542c9947c1si12498279edb.217.2022.12.29.10.24.15; Thu, 29 Dec 2022 10:24:29 -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 + 62 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 ); 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 ; 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: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrieeggdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepkeevlefhjeeuleeltedvjedvfeefteegleehueejffehgffffeekhefh hfekkeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 29 Dec 2022 13:15:27 -0500 (EST) From: Samuel Holland To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Chen-Yu Tsai , Jernej Skrabec Cc: Boris Brezillon , Samuel Holland , Brian Norris , 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: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.37.4