cfi_cmdset_0001.c: do_write_buffer: wrong length
Shane Nay
shane at agendacomputing.com
Mon Dec 18 17:24:16 EST 2000
Okay, last message was way cryptic again..., I'm not a master communicator.
Anyway, I have succesfully tested the following change on two interleaves.
First device:
two x16 devices in x8 mode interleaved
Second device:
one x16 device in x16 mode
It's only one change... cfi_cmdset_0001.c:
/* Write length of data to come */
-cfi_write(map,CMD((len/(cfi->device_type*CFIDEV_INTERLEAVE))-1),cmd_adr);
+cfi_write(map,CMD((len/(cfi->device_type))-1),cmd_adr);
Dividing by CFIDEV_INTERLEAVE there I think is wrong. The interleave
_increases_ not decreases the number of bytes/words you are going to write.
Thanks,
Shane.
To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org
More information about the linux-mtd
mailing list