Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3978571pxb; Tue, 2 Nov 2021 01:47:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLd5fm65HiWBTkcPOZA+QHddsHeVWml0ap3zcS+ylOB94RS+JbBu3mknkNvcwlBAlOFgPH X-Received: by 2002:a05:6602:1342:: with SMTP id i2mr25623777iov.153.1635842848662; Tue, 02 Nov 2021 01:47:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635842848; cv=none; d=google.com; s=arc-20160816; b=DrVGDSrnL0HV4MXkb+d8CANjMHJf+mD1zH4OtLUeBUGR8eNuoJ9Vg6pqqvEqJo2Qbn 5dbZrRIr6byDfFYccksJQjpUHZlKuO7epgwXbrfNl7jzwGT/HdeAZc0/9ZLQA6a59dZv z2tICE6l91s9qqL05XgSqGTC77lG40szDb10sibYDjbwXfoPO9tEol0Y2AFJI3kx/ePN PjUi/li7JbPuBxWGT3nDUbj5XrM+qFQnb/iK7mi0DJsgnz+tQ+oEVInCPFNIxHvPEL6U yH0r48Y5uMB0GEMKlfPHQeEvy0ggJyN3elfd+njbr/pV9ua9WzAP2d44mTb6nIvuhpaS u+jg== 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=tCp/VtrHWDyuIpZek93sj5yPGsWFmrFwh/i9It/E0nA=; b=rArh3alvzpWWl+VfQgDfAKSNVVMCZE6BxohDYpmOvB1R8q3aYKTW7ju+tMebRBwUaT YgfK4Co8POSXlt/enRHd7aLvC7jVMMjpOt1hI55k0lAFd2GUPEC41Os68vo/hVjm0KED UuyZVW23Yp7yq59q5FyZk4n0mpTTMdT/ulHwneXz0bqlUHs4nT6/VuiKlNqIko0pbZrG 9okDLXxcqxzVeuvL5av5ZFnEaUGZj6Rb4GsOascdexBRPx6AO2yOddns2ybbZDIFG5Xm PCS8eoKCFPOQHuc5ngjm+Lh+JgRX8mYm7Sj6UYirQBGVIdMMz0Wv1JG4P46WzIk0ir4N IzmQ== 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 z9si22648638ile.172.2021.11.02.01.46.58; Tue, 02 Nov 2021 01:47:28 -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 S230519AbhKBIqT (ORCPT + 99 others); Tue, 2 Nov 2021 04:46:19 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:57982 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230384AbhKBIqT (ORCPT ); Tue, 2 Nov 2021 04:46:19 -0400 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 3FB181F4417D; Tue, 2 Nov 2021 08:43:43 +0000 (GMT) Date: Tue, 2 Nov 2021 09:43:35 +0100 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 v4 1/4] mtd: rawnand: nand_bbt: hide suspend/resume hooks while scanning bbt Message-ID: <20211102094335.0e7c80de@collabora.com> In-Reply-To: <20211101084623.xrpwwvweez24svib@skn-laptop> References: <20211026055551.3053598-1-sean@geanix.com> <20211026055551.3053598-2-sean@geanix.com> <20211101083824.236b9983@collabora.com> <20211101084623.xrpwwvweez24svib@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 Mon, 1 Nov 2021 09:46:23 +0100 Sean Nyekjaer wrote: > 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? It's not meant to be backported. You'll need something simpler... > > /Sean