Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1299892pxb; Wed, 20 Oct 2021 02:14:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWVuaGARe26MsV9O6ubCX6/rTT7FkN+NhYg5X0A5/+W6bhG3ZKjLGYite8FVS4+dvdyRdD X-Received: by 2002:a17:906:3bca:: with SMTP id v10mr44422315ejf.9.1634721269926; Wed, 20 Oct 2021 02:14:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634721269; cv=none; d=google.com; s=arc-20160816; b=zsEJR4Zk61jqvkpT1GzdWNUf320+N+c2x+sXePFeRnSF1vdm7tvo+Ne5usiR2jDCeC V4VCUdKvCUDVxdBBBztX7qrvYsZ+B+scDaDmlxzNFef7w3wT9r4OFiDPaReQbQBydRwF bpYwC8DZAseG2Ox+/xo+PvvM8xHmKO4LZB5+mKceXlybeW/YBana4ru7e70/TbnIC+Pp nSq73t2KDLnyjEdO85NTTA2H5JE+otX1tAniawBY5o22qp7W/CtCJvQb4iaOCc94/7G8 l28BpYlcc21QUBTMMHyW+BCrknjqHW/Q5PzuDnohWy8lXDr6lAKKgjHWwgVIt8zyl88m CtNg== 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=8quF8QoX+gWaXsHQrLEN93xvMX4eVAgA/19zhfkfWaE=; b=Bp7A/eTvUBi+IFvuzvyPeDejtCi7BtsuiAqGSl7zzGxb/s0cG0LvGzb6b/0bvuSwfW w7mvgybqQqepKEBhr4lgSmtvSYqTeQHy+uZf6FWrstzF4KS3rVr6G24/CpkEeemmqcqN 4rlwx4z3LjA5p3EexLGKhYTBQLZ3PK+8bFRh9kJ5Hvi8h7FcFuMuDMnL9pknKCnNEaPP CdUL9VqjV6KTS50Y6g9Unv0noT6xXPcLz9CyopgPH8eEWIA4a0WI2szkRpxkM3RZYgkp DQv8/EMinP/Y/bq0nlR+3557OphYJlvfw2AhKw8xeZDBJmRysFXcQVAOrdb/Z6yTKYuz juHQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l20si2118580ejo.434.2021.10.20.02.14.01; Wed, 20 Oct 2021 02:14: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229663AbhJTJOY (ORCPT + 99 others); Wed, 20 Oct 2021 05:14:24 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:37187 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbhJTJOX (ORCPT ); Wed, 20 Oct 2021 05:14:23 -0400 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id F3789C0018; Wed, 20 Oct 2021 09:12:06 +0000 (UTC) Date: Wed, 20 Oct 2021 11:12:06 +0200 From: Miquel Raynal To: Boris Brezillon Cc: Sean Nyekjaer , 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: <20211020111206.342bd9d5@xps13> In-Reply-To: <20211020110303.6f21c057@collabora.com> References: <20211020084534.2472305-1-sean@geanix.com> <20211020084534.2472305-2-sean@geanix.com> <20211020105326.0dca864a@collabora.com> <20211020090132.zuxojg6cnwsm4dwg@skn-laptop> <20211020110303.6f21c057@collabora.com> Organization: Bootlin X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-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 Hi Boris, boris.brezillon@collabora.com wrote on Wed, 20 Oct 2021 11:03:03 +0200: > 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). And put the one matching the author (Boris') before the other (yours).