]> asedeno.scripts.mit.edu Git - linux.git/commit
mtd: cfi_cmdset_0002: Avoid walking all chips when unlocking.
authorJoakim Tjernlund <joakim.tjernlund@infinera.com>
Wed, 6 Jun 2018 10:13:30 +0000 (12:13 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 22 Jun 2018 08:29:16 +0000 (10:29 +0200)
commitf1ce87f6080b1dda7e7b1eda3da332add19d87b9
treeaf709314e6f9270ba63b01aebf49673822ac413a
parent0cd8116f172eed018907303dbff5c112690eeb91
mtd: cfi_cmdset_0002: Avoid walking all chips when unlocking.

cfi_ppb_unlock() walks all flash chips when unlocking sectors,
avoid walking chips unaffected by the unlock operation.

Fixes: 1648eaaa1575 ("mtd: cfi_cmdset_0002: Support Persistent Protection Bits (PPB) locking")
Cc: stable@vger.kernel.org
Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/chips/cfi_cmdset_0002.c