]> git.baikalelectronics.ru Git - kernel.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)
commit07102c1a2119315a74b7ecbab4c371f26d8433c6
treeaf709314e6f9270ba63b01aebf49673822ac413a
parent0c64e4d7cb71b619a85ea4bd5910ff2b8afe74df
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: a5833b6631f4 ("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