[PATCH] [RESEND] drivers:mtd:spi-nor:checkup FSR error bits

2017-11-29 Thread Bean Huo (beanhuo)
For the Micron SPI NOR, when the erase/program operation fails, especially, for the failure results from intending to modify protected space, spi-nor upper layers still get the return which shows the operation succeeds. This because spi_nor_fsr_ready() only uses bit.7 to device whether ready. For

[PATCH] [RESEND] drivers:mtd:spi-nor:checkup FSR error bits

2017-11-29 Thread Bean Huo (beanhuo)
For the Micron SPI NOR, when the erase/program operation fails, especially, for the failure results from intending to modify protected space, spi-nor upper layers still get the return which shows the operation succeeds. This because spi_nor_fsr_ready() only uses bit.7 to device whether ready. For