[PATCH] AT91RM9200 NAND support
Savin Zlobec
savin at epico.si
Tue Jun 20 10:24:05 EDT 2006
Thomas Gleixner wrote:
>On Tue, 2006-06-20 at 15:48 +0200, Savin Zlobec wrote:
>
>
>>I've pinpointed the location to the command switch at the end of
>>nand_command fn:
>>
>> switch (command) {
>>
>> case NAND_CMD_PAGEPROG:
>> case NAND_CMD_ERASE1:
>> case NAND_CMD_ERASE2:
>> case NAND_CMD_SEQIN:
>> case NAND_CMD_STATUS:
>> chip->cmd_ctrl(mtd, NAND_CMD_NONE, NAND_NCE);
>>^^^^^^^^^^^^^
>>if I wait for ready at this point then I can copy files to jffs2
>>partition on my
>>nand without problems (...well as far as I can tell from a short test...).
>>
>>
>
>Can you try to wait only, when the STATUS command is given ?
>
>I have no idea why this happens. Never seen that before.
>
>
Indeed it is the STATUS command. If I don't wait after it I can't copy
a single file on the jffs2 partition, inserting a wait there seems to solve
the problem.
Thanks,
savin
PS:
The MTD in kernel 2.6.17 doesn't have this wait either, but works for
me... different code paths - different timings ? I'll try to find some time
to check this.
More information about the linux-mtd
mailing list