linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add support for flag status register on Micron chips
@ 2014-04-08 16:12 grmoore
  2014-04-08 16:12 ` grmoore
  2014-04-09 10:03 ` Marek Vasut
  0 siblings, 2 replies; 10+ messages in thread
From: grmoore @ 2014-04-08 16:12 UTC (permalink / raw)
  To: ggrahammoore
  Cc: Marek Vasut, Geert Uytterhoeven, Graham Moore, Artem Bityutskiy,
	Sascha Hauer, Jingoo Han, linux-kernel, Yves Vandervennet,
	linux-mtd, Insop Song, Alan Tull, Sourav Poddar, Brian Norris,
	David Woodhouse, Dinh Nguyen

From: Graham Moore <grmoore@altera.com>

This is a slightly different version of the patch that Insop Song
submitted (http://marc.info/?i=201403012022.10111.marex%20()%20denx%20!%20de).

I talked to Insop, and he agreed I should submit this patch as a follow-on to his.

This patch uses a flag in the m25p_ids[] array to determine which chips need
to use the FSR (Flag Status Register).

Rationale for using the FSR:

The Micron data sheets say we have to do this, at least for the multi-die 512M 
and 1G parts (n25q512 and n25q00).  In practice, if we don't check the FSR 
for program/erase status, and we rely solely on the status register (SR), 
then we get corrupted data in the flash.

Micron told us (Altera) that for multi-die chips based on the 65nm 256MB
die, we need to check the SR first, then check the FSR, which is why the 
wait_for_fsr_ready function does that.  Future chips based on 45 nm 512MB die 
will use the FSR only.              

Thanks.

Graham Moore (1):
  Add support for flag status register on Micron chips.

 drivers/mtd/devices/m25p80.c |   94 +++++++++++++++++++++++++++++++++++-------
 1 file changed, 80 insertions(+), 14 deletions(-)

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-04-09 21:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-08 16:12 [PATCH] Add support for flag status register on Micron chips grmoore
2014-04-08 16:12 ` grmoore
2014-04-08 16:52   ` Insop Song
2014-04-09 10:06   ` Marek Vasut
2014-04-09 10:16     ` Jingoo Han
2014-04-09 10:21       ` Jingoo Han
2014-04-09 10:03 ` Marek Vasut
2014-04-09 11:09   ` Gerhard Sittig
2014-04-09 18:14     ` Graham Moore
2014-04-09 18:31       ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).