[PATCH v2] mtd: spi-nor: wait until lock/unlock operations are ready
Ezequiel Garcia
ezequiel at vanguardiasur.com.ar
Thu Jan 7 04:42:54 PST 2016
On 6 January 2016 at 22:20, Brian Norris <computersforpeace at gmail.com> wrote:
> On Mon, Dec 28, 2015 at 05:54:51PM -0300, Ezequiel Garcia wrote:
>> 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,
>> only for these manufacturers. This is needed to prevent applications
>
> Edited the above sentence, since you're not doing this "only for these
> manufacturers"; you're doing it for all that support lock/unlock.
Just to make sure we are on the same page here, this commit only
changes stm_lock, stm_unlock. So the change currently affects devices that
match JEDEC_MFR(info) == SNOR_MFR_MICRON.
--
Ezequiel García, VanguardiaSur
www.vanguardiasur.com.ar
More information about the linux-mtd
mailing list