summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/chips
diff options
context:
space:
mode:
authorEzequiel GarcĂ­a <ezequiel@vanguardiasur.com.ar>2015-12-28 17:54:51 -0300
committerBrian Norris <computersforpeace@gmail.com>2016-01-06 17:18:34 -0800
commit32321e950d8a237d7e8f3a9b76220007dfa87544 (patch)
treedebd45c7cb95e4712ebe52ab12915f3344b1a6e6 /drivers/mtd/chips
parent6e75632ac34d2f63ab586880f7e9747bd9b708a6 (diff)
downloadop-kernel-dev-32321e950d8a237d7e8f3a9b76220007dfa87544.zip
op-kernel-dev-32321e950d8a237d7e8f3a9b76220007dfa87544.tar.gz
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')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud