diff options
author | Ezequiel GarcĂa <ezequiel@vanguardiasur.com.ar> | 2015-12-28 17:54:51 -0300 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2016-01-06 17:18:34 -0800 |
commit | 32321e950d8a237d7e8f3a9b76220007dfa87544 (patch) | |
tree | debd45c7cb95e4712ebe52ab12915f3344b1a6e6 /drivers/mtd/chips/cfi_cmdset_0001.c | |
parent | 6e75632ac34d2f63ab586880f7e9747bd9b708a6 (diff) | |
download | linux-32321e950d8a237d7e8f3a9b76220007dfa87544.tar.gz linux-32321e950d8a237d7e8f3a9b76220007dfa87544.tar.bz2 linux-32321e950d8a237d7e8f3a9b76220007dfa87544.zip |
mtd: spi-nor: wait until lock/unlock operations are ready
On Micron and Numonyx devices, the status register write command
(WRSR), raises a work-in-progress bit (WIP) on the status register.
The datasheets for these devices specify that while the status
register write is in progress, the status register WIP bit can still
be read to check the end of the operation.
This commit adds a wait_till_ready call on lock/unlock operations,
which is required for Micron and Numonyx but should be harmless for
others. This is needed to prevent applications from issuing erase or
program operations before the unlock operation is completed.
Reported-by: Stas Sergeev <stsp@list.ru>
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/chips/cfi_cmdset_0001.c')
0 files changed, 0 insertions, 0 deletions