Title: [6615] trunk/drivers/mtd/chips/cfi_cmdset_0001.c: Fix bug [#4887], put intel nor flash chip into read-array mode after it is unlocked, or else it can not boot from nor flash if the reboot is caused by watchdot
- Revision
- 6615
- Author
- gyang
- Date
- 2009-06-09 01:41:24 -0500 (Tue, 09 Jun 2009)
Log Message
Fix bug [#4887], put intel nor flash chip into read-array mode after it is unlocked, or else it can not boot from nor flash if the reboot is caused by watchdot
Modified Paths
Diff
Modified: trunk/drivers/mtd/chips/cfi_cmdset_0001.c (6614 => 6615)
--- trunk/drivers/mtd/chips/cfi_cmdset_0001.c 2009-06-09 01:24:05 UTC (rev 6614)
+++ trunk/drivers/mtd/chips/cfi_cmdset_0001.c 2009-06-09 06:41:24 UTC (rev 6615)
@@ -2056,6 +2056,11 @@
goto out;
}
+ if (chip->state == FL_STATUS) {
+ /* it goes ok, put chip into array mode */
+ map_write(map, CMD(0xff), adr);
+ chip->state = FL_READY;
+ }
xip_enable(map, chip, adr);
out: put_chip(map, chip, adr);
spin_unlock(chip->mutex);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits