]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: protect access to rawnand devices while in suspend
authorSean Nyekjaer <sean@geanix.com>
Tue, 8 Feb 2022 08:52:13 +0000 (09:52 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 9 Feb 2022 08:30:21 +0000 (09:30 +0100)
commitf57383e24ff17d2c3f5f5208939b995c6b1963b8
treea152aef06ae0d4c676ff34a33ebd3abde6a32ede
parentf8a2e3939a72141e52ba8e61c103554b2a08fa45
mtd: rawnand: protect access to rawnand devices while in suspend

Prevent rawnand access while in a suspended state.

Commit 0ec4d0647426 ("mtd: rawnand: Simplify the locking") allows the
rawnand layer to return errors rather than waiting in a blocking wait.

Tested on a iMX6ULL.

Fixes: 0ec4d0647426 ("mtd: rawnand: Simplify the locking")
Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Cc: stable@vger.kernel.org
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220208085213.1838273-1-sean@geanix.com
drivers/mtd/nand/raw/nand_base.c
include/linux/mtd/rawnand.h