Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp583668rwl; Wed, 12 Apr 2023 00:47:36 -0700 (PDT) X-Google-Smtp-Source: AKy350YG5FJj9IVKJko+91f44Fx7KXYfDVYRahTSb4KCwVcE/zIf7RE4/vjDftG5y3l3cCGLDzPF X-Received: by 2002:aa7:d9d2:0:b0:504:8efb:c103 with SMTP id v18-20020aa7d9d2000000b005048efbc103mr11898649eds.0.1681285656212; Wed, 12 Apr 2023 00:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681285656; cv=none; d=google.com; s=arc-20160816; b=GfboJiYVMZpeei0oyE3ODRyzA1M6WLrRISjXWxLhTw3WymUrgwOMo9D1ecoM0vugWD t4ltq/4fklSV0S9tMKNwS8gKLBZNl2OJ4EuhJbSufvHPA5eCsgBaKwnZFwrHZ486VKvo ZaOZzFL3sqXfQXPSM6co9lbdiEmUOcP5Sqk26MvAu/0QwEdCHXxTzVyzIpGcPB0zVTbh ImVdic+0ws18K0fE+xo8U7ajfrTkWzjMc4Pv9zBjuN7QsG7OawqgFhLggr5urb3gF6jC D+nmA9pk8ybnK7wLoHSg194IiLSFppIdEmSpL2WWpm/ZmxdNKRYZMQZXc4IojdvLedwk homw== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=FFYr9F865jNKlij7bhqU6NcO52rv9OFiF5JjtJfQn8M=; b=XD+Ad4u0ocqTTTE+jwGxHo4Y6lu3HvPVcQkTAa+VntH9sQLufBuxJtEoobsLzrMPoG Qpk6jLVSKcd0DIJ12Al7Bgd4t5J06mtIr7MjdPmih81Ff8OY7x2yg0s+RHp6+M0Cfpx+ k9BeXxf1JQbg7fVeGDiaMPOH/EAGTa503dDq7J4oaRSO5dzqrt6L2tR5CBUx2kJpPK6V a90Z6vVPJk2UqKQE445/nhF7B6HwgZaiQ/xCYheHt6s8uxQYveSXF1d4Oe4b8BQ4zAT1 CiTxWMxnnMqAWvagFgW2p3m7ehtqbUJDHo9dBaXq/zzCXRjoAx8bNpmRAenZiA3HpiUk AT6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=P7q6H8wp; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c18-20020aa7d612000000b00504ebe12aa5si1556618edr.360.2023.04.12.00.47.12; Wed, 12 Apr 2023 00:47:36 -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=@bootlin.com header.s=gm1 header.b=P7q6H8wp; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229638AbjDLHpo (ORCPT + 99 others); Wed, 12 Apr 2023 03:45:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbjDLHpn (ORCPT ); Wed, 12 Apr 2023 03:45:43 -0400 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [IPv6:2001:4b98:dc4:8::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0EA71705 for ; Wed, 12 Apr 2023 00:45:41 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 1ED3A100014; Wed, 12 Apr 2023 07:45:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1681285540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FFYr9F865jNKlij7bhqU6NcO52rv9OFiF5JjtJfQn8M=; b=P7q6H8wpRwdAM4/cqiQP+t3EFYZp9l3cPj7yJQLf+pkXNirWvSdgFTLSKgyIMIHgbQeL3I 0CAXJh6o1Pf7fqUPVhrMIytVo5cPRzdA1BsUF+e++P85Nok14z0NBBbHxuH/fhsUAHPnFE WpOCqjXyW9NhVb1u4PDx12Ksg6xB+p0FjebBJSmmtYcMgqixX8pdRWNWP38w9To795NTZr xIiAojQzpYQotrV5b2uSSZzPlUlrTHD1pvUJN9gkTItUpayJ0yx4W/aMX3SSGX6fLRGkSS TiyDJDr3EMq9keOL2tmMJXR9jInTZ5yJMhERnz56cbF1HXtwGd1Qa6F365BV/A== Date: Wed, 12 Apr 2023 09:45:33 +0200 From: Miquel Raynal To: Arseniy Krasnov , Cc: Liang Yang , Richard Weinberger , Vignesh Raghavendra , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Jianxin Pan , Yixun Lan , , , , , Subject: Re: [PATCH v1 0/5] refactoring and fix for Meson NAND Message-ID: <20230412094533.10d4a2a9@xps-13> In-Reply-To: <20230412061700.1492474-1-AVKrasnov@sberdevices.ru> References: <20230412061700.1492474-1-AVKrasnov@sberdevices.ru> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 Hi Arseniy, AVKrasnov@sberdevices.ru wrote on Wed, 12 Apr 2023 09:16:54 +0300: > Hello, >=20 > this patchset adds one fix and several refactoring patches. First patch > is the most important - it fixes unstable behaviour of Meson driver, for > example random ECC errors during reads. I've tested this with mount/ > unmount/read/write cases for JFFS2 and nanddump/nandwrite utlities on > AXG family (A113X SoC). Source of this update is old vendor's driver. >=20 > Other patches are refactoring and extra checks, not critical for this > driver's reliability. Thanks for the series, minor comments inside, if you respin before the end of the week I'll take this for the next merge window. >=20 > Arseniy Krasnov (5): > mtd: rawnand: meson: fix NAND access for read/write > mtd: rawnand: meson: replace GENMASK() macro with define > mtd: rawnand: meson: check buffer length > mtd: rawnand: meson: clear OOB buffer before read > mtd: rawnand: meson: remove unneeded bitwise OR with zeroes >=20 > drivers/mtd/nand/raw/meson_nand.c | 147 ++++++++++++++++++++++++++---- > 1 file changed, 127 insertions(+), 20 deletions(-) >=20 Thanks, Miqu=C3=A8l