Title: [6616] branches/2009R1/drivers/mtd/chips/cfi_cmdset_0001.c: Fix bug [#4887] for branch 09R1, 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
6616
Author
gyang
Date
2009-06-09 01:42:00 -0500 (Tue, 09 Jun 2009)

Log Message

Fix bug [#4887] for branch 09R1, 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: branches/2009R1/drivers/mtd/chips/cfi_cmdset_0001.c (6615 => 6616)


--- branches/2009R1/drivers/mtd/chips/cfi_cmdset_0001.c	2009-06-09 06:41:24 UTC (rev 6615)
+++ branches/2009R1/drivers/mtd/chips/cfi_cmdset_0001.c	2009-06-09 06:42:00 UTC (rev 6616)
@@ -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

Reply via email to