Title: [9009] trunk/arch/blackfin/kernel/reboot.c: Bug [#5476] [#5477] force to execute soft reset
Revision
9009
Author
bhsong
Date
2010-07-22 06:31:06 -0400 (Thu, 22 Jul 2010)

Log Message

Bug [#5476] [#5477] force to execute soft reset

it is sure some hardware status are not restored to normal by raise 1,
at least we have been sure uart is not normal and can be restored by
set ier to 0 manually in uboot.
we have no much time to figure out all hardware status. So, force to run
soft reset.

Modified Paths

Diff

Modified: trunk/arch/blackfin/kernel/reboot.c (9008 => 9009)


--- trunk/arch/blackfin/kernel/reboot.c	2010-07-21 16:14:32 UTC (rev 9008)
+++ trunk/arch/blackfin/kernel/reboot.c	2010-07-22 10:31:06 UTC (rev 9009)
@@ -34,7 +34,11 @@
 	 * automatically perform a software reset for us when
 	 * it starts executing after the core reset.
 	 */
-	if (ANOMALY_05000353 || ANOMALY_05000386) {
+	/* force to execute this workaround since some chips can't
+	 * reset normally even though their anomaly lists don't
+	 * include ANOMALY_05000353 and ANOMALY_05000386.
+	 */
+	if (!((bfin_cpuid() == 0x27e4) && (bfin_revid() > 0))) {
 		/* Initiate System software reset. */
 		bfin_write_SWRST(0x7);
 
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to