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: 13272536 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2911FC7EE29 for ; Thu, 8 Jun 2023 16:29:17 +0000 (UTC) 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=zwX95lH1zBqYNqZw+J/oxBCHTbP5HQmBlI8ETsZ3xS0=; b=O0H/YWO6K37Cm+ JboJKJSYdHzcluQyE0kA9ElMxMI0iHFCTlJxJauyfIId7674OFzmyhJRLth5Z9DRvQgw2l8DmSQls HtIt69551Wfa/C9ewMnVucmzsFxCwYpxMSoP2oS+6wOn7kN5F5EJGKKLQJqeSy4g7ZQ9cvgo+h/Rb zBt20zGqx26m+2gn34W9L6C6dZFzCDGDTau+RzrUAYsAxHBWntouuVHnL5zTTImDnXiABGmwEcc3v t9zlBiI0KwusQ7iLmcrlHSQwUk2Tac5VpAV/xgej2XQ7K+bc+CplfacKQv3JydjEyRuWpgPXmu5XX CyhGGa1uY12ewjLYqaBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q7IVX-009sbV-1R; Thu, 08 Jun 2023 16:29:07 +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-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.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