mtd: cfi_cmdset_0002: Fix do_erase_chip() to get chip as erasing mode
authorTokunori Ikegami <ikegami.t@gmail.com>
Wed, 21 Aug 2019 16:46:51 +0000 (01:46 +0900)
committerRichard Weinberger <richard@nod.at>
Sun, 15 Sep 2019 21:51:07 +0000 (23:51 +0200)
commit8a9485ff09088c67b70e4e38b1679c1b9bedb808
tree9a043a72ef365ecc3dc9a0d4e6a24a2e76201c6a
parent137e92fd14959506269d58e08dae35c0bb745211
mtd: cfi_cmdset_0002: Fix do_erase_chip() to get chip as erasing mode

The chip state is set to erasing by the function after getting chip.
So it should be to get chip as erasing mode at first.
But previously it was to get chip as writing mode then fix as erasing.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Cc: linux-mtd@lists.infradead.org
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/chips/cfi_cmdset_0002.c