mtd: spi-nor: Use CLSR command for FL-L chips
S25FL{064|128|256}L chips can't recover from errors, when there are program error or erase error, P_ERR or E_ERR bit will set to one, WIP bit will remain set to one, A Clear Status Register command must be sent to return the device to STANDBY state. The error first recorded in commit <c4b3eacc> ("mtd: spi-nor: Recover from Spansion/Cypress errors"). Whlie FL-L chips shifted P_ERR or E_ERR bits to Status Register 2, which causing the current recover process doesn't work any more after enabling using CLSR. Signed-off-by: Yaliang Wang <Yaliang.Wang@windriver.com> Upstream-Status: Backport [Wind River Case 00112304] Signed-off-by: Kalle Pirinen <kalle.pirinen@nokia.com> Signed-off-by: Ruqiang Hao <Ruiqiang.Hao@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Please register or sign in to comment