From patchwork Fri Jul 14 15:19:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12069 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2584156vqm; Fri, 14 Jul 2023 08:34:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlHQM6feYnJrRtwZvDhw7CM/zJahCyBU+oJfIvOkcNW9hKDJuKD7PmJ4pEnYvXm4v9KcV0A4 X-Received: by 2002:a17:902:e805:b0:1ab:11c8:777a with SMTP id u5-20020a170902e80500b001ab11c8777amr5880295plg.13.1689348849374; Fri, 14 Jul 2023 08:34:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689348849; cv=none; d=google.com; s=arc-20160816; b=Ndi+A6ho74s4lN449I1p68yrXnhsUlOqQaHbEcdCKwbG2OBNFQtnBgkMxDYlZYitQB teGztI1cByXat7zloxZd3MEqeBhUdMbOFM8WSfi0dWMa18+kfvCcBwse3+ObXD+VOWgW +05YZ8ZKdUq5nWbqyMmPCQdxVkrLQ7pZk5tKGHRVEpCZM+CB/YHGFHrleR8vpx9Z7UKZ Oy2i7aj8eZ9z8fZqCayhiSa9n3OqaO4H6DhOWyv2qpGbilfDPUHZ58OWkDtlx9CPhWVS fqd0IQmFDQFeS1C+ab+1y6AcDhYfeSaUj118RU3hPcwdqBgUaddC2r4OsF+54xq2iKvo KwSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language:cc:to :subject:from:user-agent:mime-version:date:message-id:dkim-signature; bh=uRxUFSZUV2W8ort0PSj9hJsHbd6feENt4NCd2S7baGM=; fh=SGkBZeB3NaClSkou2vxE/8d1xcNtorwAl/pw+s8G3+Q=; b=dY/H0Cp6RvUb0TPybu1T0rVr6PFmz570ir3NrYwiNww8lvj//pdtMxUXkO2JznWpZs OxehRXT1anmHPmc5HxFjEP4CiYlNrkROAGnqrTIm87UaaaTxH9+21coE02bsrs+U0lUl ZbE64IU8wnndUaR1sGQy5q5pxDBmzaWjQuZ3JD1TmA5j/ALU0oPybiLKB2aCcfxYuTcJ i9WXrdPnjC20ksmyYe5fKM2nvs7ZooWSVnqpl4GaYeLstl02tkGsr0UXkYUOygdbxD/P qxKeSgXZdYLLFJLmqxFcyc8D2hQItyQ7Rwpbl0btIzkMYWL8Hzdhksa+sFDRbg5eABSr C3qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=kzPYOVXN; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q8-20020a17090311c800b001b53c722c3fsi7719202plh.597.2023.07.14.08.33.56; Fri, 14 Jul 2023 08:34:09 -0700 (PDT) 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=@gmail.com header.s=20221208 header.b=kzPYOVXN; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235863AbjGNPT5 (ORCPT + 99 others); Fri, 14 Jul 2023 11:19:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234916AbjGNPTz (ORCPT ); Fri, 14 Jul 2023 11:19:55 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02F7F2117 for ; Fri, 14 Jul 2023 08:19:55 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-98e011f45ffso252554566b.3 for ; Fri, 14 Jul 2023 08:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689347993; x=1691939993; 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=uRxUFSZUV2W8ort0PSj9hJsHbd6feENt4NCd2S7baGM=; b=kzPYOVXNMgXeOi1lmP8BNT3aG05tx9JwNSA93oBI+KA2rcVXavNhT42Py82GFw/dVx xYzuz/L+jSOIt+EP6ZuhbjyNgs1QRfCBMk7Eda1ciaG0WdtjCZ7fXYOtove8c1qdWyc+ AoFNG0bOWYs9VyaqlEt1l0c44lS+SIjlmi3vgSCrkjzIPUjH3MZp3TaEJyO/sTIAFxWs 8DzSW+1LsfzQ8sHkVpVRpZwcirdnwz1ClyrnYUHte4ah1GPfHYo3B+T4KZ8xUXnGqPMs 6okwA3JsDmHSR4jKrnPKfZBRKSwKqq2jrCjaB9Xn5FWKS8yULHMRp2wDn9w9+HOopza1 8Pqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689347993; x=1691939993; 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=uRxUFSZUV2W8ort0PSj9hJsHbd6feENt4NCd2S7baGM=; b=MY/oxZTOL6xNm5zFSN6Co778zVQz2lWydqPppvLXtDmZYMs8e2J2u3yvbv1cCLCR3H 2OfG72ZPKIoNiNWA9rk0kJ/0wtJJgXzxG2LDguwrUlaX5x7GeseSiCK/1GXEK5TeaSaW mipwHDWe5S5mZ+fakrDDGRu+ueSJwlTnif1mORYIdFNTWzoW+SFzV5gjIK5ASBM4kVZc ZoM8UjEW9iWtlGHvFwtB/64duiBpaQL3AfEPeBQ0X2NHGQZRbV3mtXEXg09yMAEk+qtj zpej+OPFENNiEMOD5lSPq0JR+qcCDZ4HRTtDx3849rz6gmNiBbMy5JQ5jgDhdB5ZyNcV tX9A== X-Gm-Message-State: ABy/qLa9GeGVI2WGy4m/Lq1hPjHUsmZpWCUuhxt8n23XcRK6LSPDOB5w WU5MurY8jX8YHPmYauwiTqM= X-Received: by 2002:a17:906:5194:b0:993:e9b8:90f5 with SMTP id y20-20020a170906519400b00993e9b890f5mr4483546ejk.8.1689347993197; Fri, 14 Jul 2023 08:19:53 -0700 (PDT) Received: from [192.168.2.1] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id e10-20020a170906080a00b00992d122af63sm5472518ejd.89.2023.07.14.08.19.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Jul 2023 08:19:52 -0700 (PDT) Message-ID: <273ad871-9050-7851-9973-5545b88bf43b@gmail.com> Date: Fri, 14 Jul 2023 17:19:51 +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 v5 0/2] 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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771410659201969909 X-GMAIL-MSGID: 1771410659201969909 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 oobfree layout. Changed V5: Reword Remove skipbbt patch Changed V4: Reduce subject size Add 'Fixes:' tag Reword Changed V3: Change patch order, layout fixes first Change prefixes Reword State that patches break all existing jffs2 users Changed V2: Add tag Add manufacturer ops Reword Johan Jonker (2): mtd: rawnand: rockchip: fix oobfree offset and description mtd: rawnand: rockchip: Align hwecc vs. raw page helper layouts .../mtd/nand/raw/rockchip-nand-controller.c | 45 ++++++++++--------- 1 file changed, 25 insertions(+), 20 deletions(-) --- 2.30.2