Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1799709pxb; Wed, 9 Feb 2022 04:55:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOsucjbgCxBbTTh6z6g08ut8IkUFeXs0S0gEDrG+MsZvNRFkP3yILxP2jOdIrrHm8cKKfh X-Received: by 2002:a17:90b:3e8e:: with SMTP id rj14mr2364526pjb.112.1644411331703; Wed, 09 Feb 2022 04:55:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644411331; cv=none; d=google.com; s=arc-20160816; b=CBmy446VY1rXlJc2BqVlyJJNZswKNjmAPkB2J/udh3G5yGp2NYCj/MgHeNizWXHDNi raTVdEbAP559IFiCtCPMdI4istdTOQyrxkw7hP2oMU2O6sDVNo35kTEg7ta7bhUHBV+f VifufPPPmCFXWOXEOK3WEWYhyIXA+q4wILxrqJLLiAPRsduOlSkvsrFhv56T7ozOD+Am WZg6r03X5i+VP/bms6oZbrhmUZ8L954YwAvkb7ZnckpRZwzpluBvKTx9IKOTldIQZQ+F HLnJKrJyRbwmLEG63RjIG1jREalkubhMaG76xhdXFSnQulZPScIzD8yZDBuouW8uZuzA eFcQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4rPFnHcHVlSSnZKzRu4Ncl2lMwdWWlcor8ub3qfc+CA=; b=yobMI4wL4xTq0ziE3wZN8ywD5ysLv+Vs0WFrsG0SmzRX37LfZD1y4Dy1T3GLX6MdM/ sN3jExe+ZavdtG6qkUqnA8PcAxyS/lXnKT/3VRfrVSEwRri4GTl59Ip23wvAvr4aMTq6 sDJM8GNNwUjwrkPA/A1J6uUFvRTrCqKqOKplhd6Zi2e/3517zgaNiCe12NSOwyzgGMAV haQHbkIodMeHTL5Hnc/Za4zxEcMF8chWAYbmBdL8SmbAofg711mualUlNZCZxRw6vKNe C9Z1G+XhMvMBIPkUnj3CrVKtdm/C4RQkyxAhBHJX6Kwm1SG3vuxvp7JcO76U5QYRUTr2 hJ7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=eCsL4rai; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id r72si15572759pgr.218.2022.02.09.04.55.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 04:55:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=eCsL4rai; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 42B2CE0A4CCA; Wed, 9 Feb 2022 02:32:19 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237565AbiBIIdJ (ORCPT + 99 others); Wed, 9 Feb 2022 03:33:09 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:44208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239606AbiBIIc5 (ORCPT ); Wed, 9 Feb 2022 03:32:57 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1170FC05CBB6; Wed, 9 Feb 2022 00:33:00 -0800 (PST) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 167D8FF809; Wed, 9 Feb 2022 08:32:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1644395578; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4rPFnHcHVlSSnZKzRu4Ncl2lMwdWWlcor8ub3qfc+CA=; b=eCsL4raikSTCbREvwu6DyH51SUIv+uIGRTH7jZTvAoWM2toO/5/8rygsyojvQrZOmUWaBw QUgRsA/1oZll5nGYTx6dccW1oUiclDIb5t7E0oQ05uxbKxXIIasdeYtjF8TZI4Rd6nFIF5 dr1MhEGAXQLlJigxSTobxvckdwgIlcJ5vqplBoXbapN+WUDzU3vcWRj27CrcPkyy8jlUGH Y8DKKiOZckDM5Wmll1pbGcBpxYuU2znWjQR6mgapk6hMXRABm9uEZPLejoKyCVbYdAXzHD R3nkd10YtPcXJhJXz1tQYubIjJuZG71vzZEb5ySYvJfn0NE5ePo8LMbLWbTMEA== From: Miquel Raynal To: Sean Nyekjaer , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Boris Brezillon Cc: Boris Brezillon , stable@vger.kernel.org, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] mtd: rawnand: protect access to rawnand devices while in suspend Date: Wed, 9 Feb 2022 09:32:56 +0100 Message-Id: <20220209083256.749170-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220208085213.1838273-1-sean@geanix.com> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'8cba323437a49a45756d661f500b324fc2d486fe' Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,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, 2022-02-08 at 08:52:13 UTC, Sean Nyekjaer wrote: > Prevent rawnand 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 > Cc: stable@vger.kernel.org Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel