From patchwork Thu Jun 8 16:28:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 1792398 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=oBdTjRXY; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=Otqmw9EG; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QcV6y09Lfz20QH for ; Fri, 9 Jun 2023 02:30:00 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:From:MIME-Version:Date: Message-ID: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=X3Bfh4hA8qildJ7PjS/kyZTdyi4h13ttgZrUScWmxSs=; b=oBdTjRXYV2hPiI r7Js2M1c91DlG13Xmaft89ph+eO7p/a6pjCDp1grm8Ac3iiFxW/nTBgUj6tpGeP1Sfr+sfWh702jL Lia5KK2nLkShvsJLgT8W/HO7qucCTLO6Nnk91sOi3Wmf5wRFc1S3179zpCQiId3n/VIxAOt4u6FDr 9KoIWT6O7M3oq7ZfaqeRFllX9usLEl9mFgcYmPYfvbKQ8y+3pK8bxHPZp6W90PdkB6CThihRm5pB0 sBzXQnHGvxBJoVycmkJlqWcfSqhoJCbBDEY+wQEK9WRrc0meSw46SiYS8/sJoW0OTA9jkgWsk5kCf f51o1ELdtJXRRjl03Wuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q7IVW-009sb8-1D; Thu, 08 Jun 2023 16:29:06 +0000 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q7IVT-009saU-2n; Thu, 08 Jun 2023 16:29:05 +0000 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5147f5efeb5so1461024a12.0; Thu, 08 Jun 2023 09:29:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686241741; x=1688833741; h=content-transfer-encoding:content-language:cc:to:subject:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=Dx4wceDFekjvHQM4pccArhhP8EnGfveOZfWbZuBe+f4=; b=Otqmw9EGJd5t1uv5fv8KZRxZePZr9DZNDWIh55VF/587TOI8kFdiE/QE6+ETULucEK p0tAH7ty9kWtVyNcOUQ3zz7AYF5XNdM6ZP6NTYMXZfjOrzEBtKz5y5fPaY3zKUI+O+Hh EYVKVx8f3CkCmFH3oN37RqsxJlf5Fj//JUv1yoFJnBLUt0+g5aK5fSeVLrJf60KSL0OA nhTf7KCM813C7YbALdL9ELTScqhQfmVHu6CWghvdtYLVrN+EwHq7GbhIiH2qYD5rzrR5 V2GAecNjvvClofUTMkPvePEEt8m6fLmOGFWs4LMhhAnrl/K4KQy4Yo4b8lGPElNEY5oi /WrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686241741; x=1688833741; h=content-transfer-encoding:content-language:cc:to:subject:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Dx4wceDFekjvHQM4pccArhhP8EnGfveOZfWbZuBe+f4=; b=Q/AfUjfgfhXQhrTD3YgO/zUTqEGNxZHc6IMtV5wa3RywP05fKual5VA9k7faER+FiE aEANxveZnRqm2T3CBIrb4+4+h7YNL4z5w6cTtYYDXVYrfm1IGQBp+VyyViYx7afyjENH 1nIOOArw6UEhaGw7l5bA4+JzjEn0xGfCHJQ2fjOSCHCv4wbiPkU/RwkLXFr0pjpv3l8Y KdAtSPm0ojQuwqujJDXQuiOT5JV5lW999MD2thYKhNp4rtwO27LUoKMXLSJLmRv7jEA2 zaJDDyeNpdRwMjl+5SHvJZcurNKpOYcS0g3jXz4vfeTl4jvVH5D5Z7U+gSNESIC6A9Y4 bbVg== X-Gm-Message-State: AC+VfDzJ/22gVf13X27oKxDD+O5NaIJpXElw3oXGjxCSi1Xoq92ACxli TqjaqBfZfuByAORqawjEXMk= X-Google-Smtp-Source: ACHHUZ58XomZ/FJB12G2xiLboOeaIJooEA/AyVgjnXFUz+JFy6MuLckqbWnzXxmmupqlqPf2AWUBUQ== X-Received: by 2002:aa7:d986:0:b0:514:97dc:9d4e with SMTP id u6-20020aa7d986000000b0051497dc9d4emr8175409eds.7.1686241741138; Thu, 08 Jun 2023 09:29:01 -0700 (PDT) Received: from [192.168.2.2] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id ba7-20020a0564021ac700b0050bc6983041sm716463edb.96.2023.06.08.09.29.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Jun 2023 09:29:00 -0700 (PDT) Message-ID: <19bf714a-43f9-c30a-8197-91aaaf4a6e5d@gmail.com> Date: Thu, 8 Jun 2023 18:28:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 From: Johan Jonker Subject: [PATCH v1 0/5] Fixes for Rockchip NAND controller driver To: miquel.raynal@bootlin.com Cc: richard@nod.at, vigneshr@ti.com, heiko@sntech.de, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, yifeng.zhao@rock-chips.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230608_092903_904514_7E96601C X-CRM114-Status: UNSURE ( 8.42 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.1 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This serie contains various fixes for the Rockchip NAND controller driver that showed up while testing boot block writing. Fixed are: Always copy hwecc PA data to/from oob_poi buffer in order to be able to read/write the various boot block layouts. Add option to safely probe the driver on a NAND with unknown data layout. [...] Content analysis details: (0.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:52d 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 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [jbx6244[at]gmail.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [jbx6244[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This serie contains various fixes for the Rockchip NAND controller driver that showed up while testing boot block writing. Fixed are: Always copy hwecc PA data to/from oob_poi buffer in order to be able to read/write the various boot block layouts. Add option to safely probe the driver on a NAND with unknown data layout. Fix default timing. Fix oobfree layout. Add missing chip ID. Johan Jonker (4): mtd: nand: raw: rockchip-nand-controller: copy hwecc PA data to oob_poi buffer mtd: nand: raw: rockchip-nand-controller: add skipbbt option mtd: nand: raw: rockchip-nand-controller: fix nand timing default mtd: nand: raw: rockchip-nand-controller: fix oobfree offset and description Paweł Jarosz (1): mtd: nand: add support for the Sandisk SDTNQGAMA chip drivers/mtd/nand/raw/nand_ids.c | 3 + .../mtd/nand/raw/rockchip-nand-controller.c | 59 ++++++++++++------- 2 files changed, 40 insertions(+), 22 deletions(-) --- 2.30.2