[PATCH] Check flag status register for Micron n25q512a

Chuck Peplinski chuck at mds.com
Sun Mar 2 00:28:26 EST 2014


Sorry about top posting.
I am also using this n25q512.  My working code includes a fix similar to 
what Song posted.  I don't consider it elegant.  The problem is that 
this 25q512 apparently behaves in a unique fashion.  If you read the 
status register instead of the flag status register, reads work but 
erases and writes fail.  I know this from a couple of days of 
debugging.  You must respond to the flag status register.  Yes, this is 
different from every other part.

Some possible solutions are:
- hard code support for this device, as Song did.
- add some other abstraction that affects support for every other part.
I leave the decision to you, but neither sounds very pretty.

     Chuck

On 3/1/2014 1:22 PM, Marek Vasut wrote:
> To me, it looks like FSR bit 7 and SR bit 7 should toggle exactly at the same
> time and exactly for the same events. Can you try for example reading them both
> and checking that the bit 7 really toggles at different times please?
>




More information about the linux-mtd mailing list