mtd/drivers/mtd/chips cfi_cmdset_0001.c,1.189,1.190
Nicolas Pitre
nico at infradead.org
Wed Mar 29 17:31:42 EST 2006
Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/tmp/cvs-serv5829/drivers/mtd/chips
Modified Files:
cfi_cmdset_0001.c
Log Message:
[MTD] cfi-cmdset-0001: always update the chip status
... otherwise xip_enable() won't do the right thing.
Signed-off-by: Nicolas Pitre <nico at cam.org>
Index: cfi_cmdset_0001.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/cfi_cmdset_0001.c,v
retrieving revision 1.189
retrieving revision 1.190
diff -u -r1.189 -r1.190
--- cfi_cmdset_0001.c 8 Feb 2006 16:46:35 -0000 1.189
+++ cfi_cmdset_0001.c 29 Mar 2006 22:31:38 -0000 1.190
@@ -1480,8 +1480,10 @@
[...], the device will not accept any more Write to Buffer commands".
So we must check here and reset those bits if they're set. Otherwise
we're just pissing in the wind */
- if (chip->state != FL_STATUS)
+ if (chip->state != FL_STATUS) {
map_write(map, CMD(0x70), cmd_adr);
+ chip->state = FL_STATUS;
+ }
status = map_read(map, cmd_adr);
if (map_word_bitsset(map, status, CMD(0x30))) {
xip_enable(map, chip, cmd_adr);
More information about the linux-mtd-cvs
mailing list