Mask error in nandbase.c: nand_scan(): oob_size

Nathan H. n_8_10 at hotmail.com
Thu Aug 4 12:43:49 EDT 2005


Ah ha!  Now it all becomes clear.  You are looking at the wrong bit field.  
I tried to make it clear in the first email, but accidentally used a 
variable width font- so that the "^error" may have been pointing in the 
wrong place.  Maybe that was not helpful as I had intended.

"oob_size" in the driver is related to the "Redundant Area Size" in the 
flash documentation.  Redundant Area Size (RAS) is a 1 bit field.  Yet in 
the driver a 2 bit field mask is used to mask it.  This means that the RAS 
and the Serial Access Miniumum bits are grabbed together.  Because the SAM 
is (for now) only "0" this error has not caused any problems.  But it is not 
right or future proof.

Please refer to my first email.  It is the mtd->oobsize and NOT the 
mtd->oobblock to which my comments refer.

Thank you for your reply.  I hadn't yet seen documentation about the 5th ID 
Data field.  That will be helpful for a problem that I am going to be 
working on soon.

-Nathan

>Sorry. The field is 2 (two) bits wide for _ANY_ FLASH which supports the
>extended ID. The code looks at bit 0 and bit 1 of 4th ID data. Why do
>you insist that it is a 1-bit field ?
>
> >From the datasheet you referred to
>
>         I/O1  I/O0
>1K       0      0
>2k       0      1
>reserved 1      0
>reserved 1      1
>
> >From the datasheet I referred to
>
>         I/O1  I/O0
>1K       0      0
>2k       0      1
>4k       1      0
>8k       1      1
>






More information about the linux-mtd mailing list