Failure writing to flash in drivers/mtd/chips/cfi_cmdset_0002.c
Michael Leibow
MichaelLe at belkin.com
Wed Jun 30 12:32:30 EDT 2004
I have an AMD Spansion S29GL064M flash chip. The cfi_amdstd_setup() code in
cfi_cmdset_0002.c chooses a write method:
If( cfi->cfiq->BufWriteTimeoutTyp )
{
printk( "Using buffer write method\n" );
mtd->write = cfi_amdstd_write_buffers;
} else {
printk( "Using word write method\n" );
mtd->write = cfi_amdstd_write_words;
}
This flash part doesn't seem to work properly with the write_buffers code.
cfi_amdstd_write_buffers() always returns with retlen == 0.
If I comment out the top part of the if and force the "word write" method,
then it works fine. Anybody else seen this?
Michael Leibow
Senior Software Engineer
Belkin Corporation
Research & Development Labs
585 324-7815
www.belkin.com
More information about the linux-mtd
mailing list