Stefan Roese cd1d937f90 [PATCH] nand: Fix problem with oobsize calculation
Here the description from Brian Brelsford <Brian_Brelsford@dell.com>:

The Hynix part returns a 0x1d in the 4th ID byte. The Samsung part
returns a 0x15. In the code fragment below bits [1:0] determine the
page size, it is ANDed via "(extid & 0x3)" then shifted out. The
next field is also ANDed with 0x3. However this is a one bit field
as defined in the Hynix and Samsung parts in the 4th ID byte that
determins the oobsize, not a two bit field. It works on Samsung as
bits[3:2] are 01. However for the Hynix there is a 11 in these two
bits, so the oob size gets messed up.

I checked the correct linux code and the suggested fix from Brian is
also available in the linux nand mtd driver.

Signed-off-by: Stefan Roese <sr@denx.de>
2007-01-05 11:46:05 +01:00
..
2006-11-30 18:02:20 +01:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2002-11-03 00:24:07 +00:00
2005-01-10 00:01:04 +00:00
2006-08-23 11:04:43 -05:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2005-10-13 16:45:02 +02:00
2006-03-11 22:53:33 +01:00
2005-10-13 16:45:02 +02:00
2004-08-01 22:48:16 +00:00
2003-06-27 21:31:46 +00:00
2005-10-13 16:45:02 +02:00
2003-06-27 21:31:46 +00:00
2005-10-28 22:30:33 +02:00
2006-03-06 13:03:37 +01:00
2006-03-12 22:14:20 +01:00
2006-03-11 22:53:33 +01:00
2006-03-11 22:53:33 +01:00
2006-10-24 15:17:59 +02:00
2006-07-21 15:24:56 +02:00
2003-06-27 21:31:46 +00:00
2005-10-13 16:45:02 +02:00
2003-06-27 21:31:46 +00:00
2005-10-28 22:30:33 +02:00
2005-10-13 16:45:02 +02:00
2002-11-03 00:24:07 +00:00
2005-09-25 18:41:04 +02:00
2005-09-23 11:05:55 +02:00
2006-08-09 14:41:17 -05:00
2006-06-19 11:02:41 +02:00
2005-10-13 16:45:02 +02:00
2003-06-27 21:31:46 +00:00
2006-07-21 15:24:56 +02:00
2006-07-21 15:24:56 +02:00
2004-01-02 14:00:00 +00:00
2006-07-21 20:57:53 +02:00
2004-07-01 16:30:44 +00:00
2004-07-01 16:30:44 +00:00
2006-10-09 00:42:01 +02:00
2005-03-27 23:41:39 +00:00
2006-03-12 02:10:00 +01:00
2006-03-12 02:10:00 +01:00
2005-10-13 16:45:02 +02:00
2003-06-27 21:31:46 +00:00
2005-08-06 01:02:27 +02:00
2003-06-27 21:31:46 +00:00
2003-06-27 21:31:46 +00:00
2006-07-21 15:24:56 +02:00
2004-03-25 15:14:43 +00:00
2004-03-25 15:14:43 +00:00
…