Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1649767pxb; Wed, 9 Feb 2022 01:10:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwvfT/XcllyRooV/W97iISLxeMvGiuXT+xjE3629ql7mh+0I6+JkyhRSuNgKiPeqABx7j/f X-Received: by 2002:a63:6985:: with SMTP id e127mr1117340pgc.567.1644397837018; Wed, 09 Feb 2022 01:10:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644397837; cv=none; d=google.com; s=arc-20160816; b=XrthUTt5ucZcOQDIpRYA3LgSm/7oLdTg5ipoXLludAd3Jax6UyRoTrScUdx2LKQX4q T2Oxa2xwvDsP5AeDDzN5pXvsd1JHiq/GXGDNFLvLYPvQ2KRVJ/T6u24AHhcicHYEvedk u6m7uMHCC/3ic7YmrKY0+TQTcsddV2FFOqLJC0iv9kNyYmha5MnWEPV6AQUFyn6+P+nr cidFX6WkAXP0R4qpOHht/JlXMjzQICK/7dy0N4B1OM/vCxZtWpCvY3i8o0ku3NLbeq4+ dcdHnTggkJsc2vxugU/vvVjDCVzCWYYznDeWcQg/pFQCdxfyZKToxLIM/EBX5hc2COvz lCVA== 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=QXEHHzVF/Y/2GPDjGtCchdxKO9uVajseSioBBnMYyj0=; b=0V5lC7FfvGQdrSzWwSQuHR8VeVwGlKBnrd2G0D+K639ASqYCQhLth71TfJL19SyDhJ CD+x/evv7M7DpDxxy0A2493kyECkrA31LNVBSt/Qywc5Y49z7LT/H+9t3xMbNwldemzC c7fSEmD0UuqllDFKadOeU/O797yh4AL50jeBsMSx5nsQvecKrmqETL+XH0oxvvmk5V1Y vQ0Ods9SJGDDI8aT8ZGcnmDmK3fwXE5z7WeKrYC2nK84ICK3GWZ0R0lCC+H/rtssN9V4 OE3KIQMmbPIG3VDyaHXYTgI3ECbmBpBSQ8/RHc2crVj3FqpdUNzGedgiw2WFyujx9gQT gUgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EVYmo7kf; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q6si15487066plx.478.2022.02.09.01.10.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 01:10:37 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EVYmo7kf; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ACD09DF28AC2; Wed, 9 Feb 2022 00:52:36 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350102AbiBHIjN (ORCPT + 99 others); Tue, 8 Feb 2022 03:39:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237041AbiBHIjM (ORCPT ); Tue, 8 Feb 2022 03:39:12 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6116C03FEC0; Tue, 8 Feb 2022 00:39:11 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5140F60B4F; Tue, 8 Feb 2022 08:39:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 271FCC340ED; Tue, 8 Feb 2022 08:39:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644309550; bh=4jQ04LjZfUbQzPTvU2cT4/8kmd6n6kvE/jSKStVXFjA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EVYmo7kf1a9CWGEgO70gZ9N6EZp49iQTYs7VBhPvWfFNwHC6Dee2Lp9UOBSmoEwMD GISIrFwH3fq0jQ5ZnET0x+Ben/ClgGnZh1/mLYUTZlDXDclJbH3QKo6HwmlJGSIVwJ N7rGu0p4EFeR6wzvKXrJLi5JXsGMV0xsAaDBBqDY= Date: Tue, 8 Feb 2022 09:39:07 +0100 From: Greg KH To: Sean Nyekjaer Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Boris Brezillon , stable@vger.kernel.org, sfr@canb.auug.org.au, Boris Brezillon , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] mtd: rawnand: protect access to rawnand devices while in suspend Message-ID: References: <20220208082507.1837764-1-sean@geanix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220208082507.1837764-1-sean@geanix.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Tue, Feb 08, 2022 at 09:25:06AM +0100, Sean Nyekjaer wrote: > Prevent rawnend access while in a suspended state. > > Commit 013e6292aaf5 ("mtd: rawnand: Simplify the locking") allows the > rawnand layer to return errors rather than waiting in a blocking wait. > > Tested on a iMX6ULL. > > Fixes: 013e6292aaf5 ("mtd: rawnand: Simplify the locking") > Signed-off-by: Sean Nyekjaer > Reviewed-by: Boris Brezillon > --- > Follow-up on discussion in: > https://lkml.org/lkml/2021/10/4/41 > https://lkml.org/lkml/2021/10/11/435 > https://lkml.org/lkml/2021/10/20/184 > https://lkml.org/lkml/2021/10/25/288 > https://lkml.org/lkml/2021/10/26/55 > https://lkml.org/lkml/2021/11/2/352 Please use lore.kernel.org links, we have no control over lkml.org and it does not work with our tools at all. Also: This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.