Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1293187pxb; Wed, 20 Oct 2021 02:05:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3mgoP+36tjLw0NhWF52x2zyFXwesfvc0qgCj6TxVQm+x3wwEFPtab9DIrAMo81F53Z50G X-Received: by 2002:a05:6402:5c2:: with SMTP id n2mr60784133edx.239.1634720729491; Wed, 20 Oct 2021 02:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634720729; cv=none; d=google.com; s=arc-20160816; b=MBTJDfuVe+jVueMzEL9N+HCB+OJr2M4Mi1FZJsSYbxTPyMZu8g8KDNyWif8slrQ1sJ Mmd8PB51Zz1d/W0UeeTkNLcITrU+BmyGd9tpQkDgFvQnTy8hTwwU6FdUkbLGlKje6GD8 b/fJSUex+F937mM0r4egTzAqoIaekiQ42YjV1P9o8mFCv6Mfi2sHvmmDyeMKkiMVbWyC z6NKACJmQ8+JoOo5+IPcjyIuMsqHZQS6D52gYwGi3g+NTRfN4xfCgFND7JmBYNHMbwuJ hd73SJF0iG1+jB/pXUw+zsuFcbWamO+RKNi2v/MPCBNlJPl9Vcu1XZ8SaSs2GNVMTzdf MLWw== 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; bh=SmXNlk+a7nbIib6J5wEfGXkLQKkw7PoHFTQ8E6hMJQ4=; b=AZ4g0eW/Su9JMnewWdbINOjt+NZcuTvi1r8EH4OsN2ZQuYV3XUqb8ZERAHvB8TI2jl o0/wWKr5/zPL+8aw+NgOf7UzGLI3pqKgyFfQNIMyAcW/c1xIqNPRCd5kLQa2/Cr4rQS+ 2Ynur4ON88jeZfq8QW9dOo2U2zPG90CF7EHhSydh7n/iUKyEFEBTf4oDd7WxAejgOco3 Jh++VrSvhFavUwA5Lp5hcW2yaW0C4M4z1JfMDwtXIPQAX+XVGQp/B/sIeM/XZPmNaSWk 4rV54WYbfBzBMYm1F5gfm8UO6ILV8adXWjz7HobkwQVzuEzA7BBtPSylIimO+noGM4RT Tg2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x2si2947408edl.308.2021.10.20.02.05.05; Wed, 20 Oct 2021 02:05:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229985AbhJTJFW (ORCPT + 99 others); Wed, 20 Oct 2021 05:05:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229639AbhJTJFV (ORCPT ); Wed, 20 Oct 2021 05:05:21 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 049F9C06161C for ; Wed, 20 Oct 2021 02:03:08 -0700 (PDT) Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:5cf4:84a1:2763:fe0d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 8F0421F43F56; Wed, 20 Oct 2021 10:03:06 +0100 (BST) Date: Wed, 20 Oct 2021 11:03:03 +0200 From: Boris Brezillon To: Sean Nyekjaer Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Boris Brezillon , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/4] mtd: rawnand: nand_bbt: hide suspend/resume hooks while scanning bbt Message-ID: <20211020110303.6f21c057@collabora.com> In-Reply-To: <20211020090132.zuxojg6cnwsm4dwg@skn-laptop> References: <20211020084534.2472305-1-sean@geanix.com> <20211020084534.2472305-2-sean@geanix.com> <20211020105326.0dca864a@collabora.com> <20211020090132.zuxojg6cnwsm4dwg@skn-laptop> Organization: Collabora X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 20 Oct 2021 11:01:32 +0200 Sean Nyekjaer wrote: > On Wed, Oct 20, 2021 at 10:53:26AM +0200, Boris Brezillon wrote: > > On Wed, 20 Oct 2021 10:45:31 +0200 > > Sean Nyekjaer wrote: > > > > > From: Boris Brezillon > > > > > > The BBT scan logic use the MTD helpers before the MTD layer had a > > > chance to initialize the device, and that leads to issues when > > > accessing the uninitialized suspend lock. Let's temporarily set the > > > suspend/resume hooks to NULL to skip the lock acquire/release step. > > > > > > Fixes: 013e6292aaf5 ("mtd: rawnand: Simplify the locking") > > > Tested-by: Sean Nyekjaer > > > > It's missing our Signed-off-by tags. > > > > Patch is from you ;) > If you are okay with it, I will add your Signed-off-by tag. You should add both (mine and yours).