From patchwork Mon Jun 12 15:00: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: 13276803 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 341E3C7EE2F for ; Mon, 12 Jun 2023 15:01:33 +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=Fx3rtO0Qi667ylYAIRPyp2alKM1KRm3TQ6I5hXJOQm8=; b=qLOwvOywgAEBmR 32WH9PuFPS+zrS2FDCg2gPH/NbT0FYnnjKQwrOmiN6RRfDMxIKp0x2ELhAVMuuvmxULGNQDs40QDp rXaV4s85RgLBVkZU6p/FpdoYFeeyXwD390bnFEO8uWltVg+O01wKupVv+gokFxgRAN//1Oz203ZVR G6EVqMZIgRVO4t2lI9X4JFJWq+nV9fhLKi13YP54KPNizx8PTsgHH4VXIHqwTl/0ypBEEqLSPfva8 8WiEGu1UTTE/tf6Xln4eNvjkLmfccmkdhx6H/uJaN+HStbxOaQUu4VYpf7isDACScfjnLIg4jk18w 1ukhkuF3k8vOaNCRzi3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q8j2Z-004O9s-00; Mon, 12 Jun 2023 15:01:07 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q8j2V-004O7p-2j; Mon, 12 Jun 2023 15:01:05 +0000 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-977d6aa3758so814067066b.0; Mon, 12 Jun 2023 08:01:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686582061; x=1689174061; 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=mrjIaSswtTyEY7Z8qdbgtXftw/wW1klcn/CpxmtkX3c=; b=MoV2QEdO3zATE97Mvg8ltny6qdqArDowpHJ8EY5BBTGq7VSxNV6B3GamkBWpiZS+8t stSc29yAUb4awRgsYYXV7YSTR9hZCQD9ak5fZVowQfL1PPN/nzvARWjoQBLbcSqAS6LG 67fANOGUc/tNyL1WvzgzdIxUewkgq8pDTwkQagZ06TTqPTUQeLLTEbgI3I5hZlipXo42 3yziw4GhShnQ6Lg/Cv/jlwjurvWNKnQgJhKXqym7acLF+NVH4fhZ7vSJ9nkhFjRdoRtY aj/DHXiXC0YDv7IPBdRpIWqujinu9a/yU4SzLooRU+h6TXBi8fqoC9fB53TWBjwSlXYJ zgWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686582061; x=1689174061; 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=mrjIaSswtTyEY7Z8qdbgtXftw/wW1klcn/CpxmtkX3c=; b=QabSoLwXGtMgZ9IbieadQsXD0RRQYC3WeHv0aYL7diXNX+mKiwJkr3nTIxLO6VcJK8 RUqtxIGa7aCSPg3xCeIsTlY3Yt5/EH79PdtjfBDOZQoiTEMX9biYp3BB4o3y9PcggEsi /F3W18SV46R/dGKsRQ28ic4nNjBKx5vqxDx1RAAFBwHgqxc6vdjGC55ezMS69j+8wUFA NxEFrqXGibg627Auc1f8N50FGmxCpnzfr6sqj7NBcQM5LhmFjrvoOhBO1rzX0b4GHIEP b8+qJLhyOR/Qfv6YUTR0PnR/2hjN1QjbKZoIjIUX0E7IakScwkBvnpeX/9cRpsfLUUYB tuBA== X-Gm-Message-State: AC+VfDycn8qB48Cj9PCn7xXR3knWboP/foFPB81/S/fbSoVplTiQW7DS VPmi3bT4CjPgBqYq9Li790/Hkgd38Gw= X-Google-Smtp-Source: ACHHUZ5blwfhznY7HEehsUI5LMmuOJwU7N2BdDI1xQ2Y0yJXTUUc4FAlxBZNIkv7qM1VODcBabS/9w== X-Received: by 2002:a17:906:730b:b0:973:bcf6:1d4 with SMTP id di11-20020a170906730b00b00973bcf601d4mr11632209ejc.76.1686582060941; Mon, 12 Jun 2023 08:01:00 -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 m3-20020a1709061ec300b00973f1cd586fsm5420857ejj.1.2023.06.12.08.00.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Jun 2023 08:01:00 -0700 (PDT) Message-ID: <11e16c3b-6f7b-a6a9-b0ed-b7ac0cd703e3@gmail.com> Date: Mon, 12 Jun 2023 17:00: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 v2 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-20230612_080103_888221_26DD7B1F X-CRM114-Status: GOOD ( 10.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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. Changed V2: Add tag Add manufacturer ops Reword 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 oobfree offset and description mtd: nand: raw: add basic sandisk manufacturer ops Paweł Jarosz (1): mtd: nand: add support for the Sandisk SDTNQGAMA chip drivers/mtd/nand/raw/Makefile | 1 + drivers/mtd/nand/raw/internals.h | 1 + drivers/mtd/nand/raw/nand_ids.c | 5 +- drivers/mtd/nand/raw/nand_sandisk.c | 26 ++++++++++ .../mtd/nand/raw/rockchip-nand-controller.c | 52 ++++++++++++------- 5 files changed, 64 insertions(+), 21 deletions(-) create mode 100644 drivers/mtd/nand/raw/nand_sandisk.c --- 2.30.2