[PATCH 6/6] mtd: spi-nand: Support common SPI NAND devices

Ezequiel Garcia ezequiel.garcia at imgtec.com
Wed Dec 3 12:18:06 PST 2014



On 12/03/2014 09:08 AM, Qi Wang 王起 (qiwang) wrote:
[..]
>>> For example, Jffs2 program clean marker data to oob first when format
>>> operation, then will program main data into NAND flash main area when
>> normal write operation.
>>> That mean JFFS2 can only store clean marker into unprotect area of oob.
>>
>> Yeah, but are these devices capable of writing to the OOB region only
>> (without messing with the data) ?
> 
> Yes, SPI NAND have this capability. SPI NAND also have definition for NOP,
> just similar with Parallel NAND, fill 0xFF to the area that don't want to 
> write anything is ok.
> 

Which SPI NAND command allows to do this?

AFAICS, you need to issue the following sequence to be able to write to
only the main area, or only the OOB area:

1. Read page to cache
2. Write to cache
3. Write page from cache

So it doesn't seem to support it natively, but through a workaround.
Doesn't this hurt JFFS2 performance a lot?

[..]
>>
>> Do you have any reason for *not* using a UBI-based FS?
> 
> I agree with you, I just considered some legacy users customer still using JFFS2.
> 

Hm.. right. It's important to support legacy users, but I'd say it's not
our primary goal.

-- 
Ezequiel



More information about the linux-mtd mailing list