Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2791991pxb; Mon, 1 Nov 2021 01:48:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzr+5NclHqc9VKMwqAMy5LAsJd3SEjbKBWVcnZemuE1FCWlOUKpXPggp03rwuEYhjt/fN5Z X-Received: by 2002:a05:6402:34d1:: with SMTP id w17mr39263524edc.383.1635756514865; Mon, 01 Nov 2021 01:48:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635756514; cv=none; d=google.com; s=arc-20160816; b=NCuu/9Obo4/DZ2V8kLFptMBCkynUy6mIB87XUClOnphim7fa61CzGlDz3l8U9evfhZ lfdrCUMdvZRMrJUVDYE60sa3oh9oReR2iqvXcCBGzy/HgmHGL67y6/EI+DembF2ubYrt 5/qPcKgDqGB6E+08Y98MdROISrru1WN6PaF4yBCXOQ/BU8HKMhlshb3oooZ4psWEZxVZ v1KP9cFzHRHBUzGsxsj8tFWmNVkVRtcW/Rp4NXwqT2tFJxsskicZNs2dXKWXsc80ZpXg lZE1wbPePMSaCQGI1TfR2QJKsFp3vudT8qlOdUthmnY7AOa+yZ3RU4kMcmuyoFdEueSV JfeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4RlsKSuhJkte8ICm4P+fUU4Xq9fflVH8A8kyc9PRvBA=; b=RvzO4/nOgTEtBJyrLR9YwkJ1Zts/p7ORG7VpPaBjZzUNiayUfx7DHA0RyQClGJ2AfE SogJfcOyEGVEpdl92fq2dyr1eF8uUgEMYOVDHkzPeDt9BSg20Vmkqre3+Mc27MAhWinB vGg+Qtn+6neB9h7W8sA8XGvo/DKxAnh+10bFeuNw2wKCFUekdugKb6QxhdBP7C9NIYaB f9MnuMe9qOAi4JCoXL3VrttyowaKke+QBHHbxfw96vDYHeKo0Iw6OarJ1k4IpMLKOoSG MF8DSdrVBwwL+GQzCaN8tfTr3e2XSCaSifGTJ4Hd7UCArkaoNA68658r+rGctO4PjLMY IJPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=first header.b=GCtcjycb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb9si28011237ejc.163.2021.11.01.01.48.11; Mon, 01 Nov 2021 01:48:34 -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; dkim=pass header.i=@geanix.com header.s=first header.b=GCtcjycb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231433AbhKAItB (ORCPT + 99 others); Mon, 1 Nov 2021 04:49:01 -0400 Received: from first.geanix.com ([116.203.34.67]:37486 "EHLO first.geanix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231386AbhKAItB (ORCPT ); Mon, 1 Nov 2021 04:49:01 -0400 Received: from skn-laptop (unknown [185.233.254.173]) by first.geanix.com (Postfix) with ESMTPSA id E567BD67A8; Mon, 1 Nov 2021 08:46:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=geanix.com; s=first; t=1635756385; bh=qdJTJ4CPDrPjfrnJBTByEIdvM1m6Qg5yx5K523AlXXQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=GCtcjycbJl3C/4nAE3IqLI264dlNq7UPcV/1hDtFGSbF8aakLclr99bklD2TpAhiv pLk7ptUWdT0FTLv2fgC/yh3tOISJfe+VxISPJyoa4aCKmWe+vkHJHMuwaXRnIb/2tF yWXT1SbThjb5ITL4MKlQdaHey43kO6xLbdOddUeDUU8MZ5099MKZ1oDSXwlpgMgDGA hX9kYPyuHapdhC0chyahO3qamlzixKHrkcOcqBlCvQq5RlFwy0DmDH7KWyRmlh7Hga BRtW705rsSnFQBoQKtpFCIZJuDlWtIjw93yyJhyAXrppVgxSqTgrCIJvUA5ieRP1gy cEdCT+NHD9ppw== Date: Mon, 1 Nov 2021 09:46:23 +0100 From: Sean Nyekjaer To: Boris Brezillon Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Boris Brezillon , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/4] mtd: rawnand: nand_bbt: hide suspend/resume hooks while scanning bbt Message-ID: <20211101084623.xrpwwvweez24svib@skn-laptop> References: <20211026055551.3053598-1-sean@geanix.com> <20211026055551.3053598-2-sean@geanix.com> <20211101083824.236b9983@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20211101083824.236b9983@collabora.com> X-Spam-Status: No, score=-3.1 required=4.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED autolearn=disabled version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on 13e2a5895688 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 01, 2021 at 08:38:24AM +0100, Boris Brezillon wrote: > On Tue, 26 Oct 2021 07:55:48 +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") > > I think I already mentioned this Fixes tag should not be there. > No, I didn't recall that, but nevermind :) Hmm when ('mtd: core: protect access to MTD devices while in suspend') is backported we want to live with the use before init of the rwsem? /Sean