Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9553BC433F5 for ; Fri, 19 Nov 2021 18:35:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 78FDF61B5F for ; Fri, 19 Nov 2021 18:35:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235015AbhKSSis (ORCPT ); Fri, 19 Nov 2021 13:38:48 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:45111 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235012AbhKSSip (ORCPT ); Fri, 19 Nov 2021 13:38:45 -0500 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 2326A40006; Fri, 19 Nov 2021 18:35:40 +0000 (UTC) From: Miquel Raynal To: Sean Nyekjaer , Boris Brezillon Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Boris Brezillon , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 3/4] mtd: core: protect access to MTD devices while in suspend Date: Fri, 19 Nov 2021 19:35:40 +0100 Message-Id: <20211119183540.1330186-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20211102110204.3334609-4-sean@geanix.com> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'9d6abd489e709666fc3f6fcfc124c89ab53c52a8' Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2021-11-02 at 11:02:03 UTC, Sean Nyekjaer wrote: > Prevent MTD access while in a suspended state. Also > prevent suspending a device which is still currently in use. > > 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. > > Suggested-by: Boris Brezillon > Signed-off-by: Sean Nyekjaer Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks. Miquel