Skip to content
Commit 651d4a1a authored by Yaliang Wang's avatar Yaliang Wang Committed by Bruce Ashfield
Browse files

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: default avatarYaliang Wang <Yaliang.Wang@windriver.com>
Upstream-Status: Backport [Wind River Case 00112304]
Signed-off-by: default avatarKalle Pirinen <kalle.pirinen@nokia.com>
Signed-off-by: default avatarRuqiang Hao <Ruiqiang.Hao@windriver.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent 40dd32ba
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment