Title: [6448] trunk/drivers/spi/spi_bfin5xx.c: [#5144] fix by Wolfgang Muees to make sure SPI controller is in a sane state in case the boot loader left it in a crappy state
Revision
6448
Author
vapier
Date
2009-05-21 20:11:02 -0500 (Thu, 21 May 2009)

Log Message

[#5144] fix by Wolfgang Muees to make sure SPI controller is in a sane state in case the boot loader left it in a crappy state

Modified Paths

Diff

Modified: trunk/drivers/spi/spi_bfin5xx.c (6447 => 6448)


--- trunk/drivers/spi/spi_bfin5xx.c	2009-05-21 13:27:40 UTC (rev 6447)
+++ trunk/drivers/spi/spi_bfin5xx.c	2009-05-22 01:11:02 UTC (rev 6448)
@@ -1426,6 +1426,12 @@
 		goto out_error_queue_alloc;
 	}
 
+	/* Reset SPI registers. If these registers were used by the boot loader,
+	 * the sky may fall on your head if you enable the dma controller.
+	 */
+	write_CTRL(drv_data, 0x0400);
+	write_FLAG(drv_data, 0xFF00);
+
 	/* Register with the SPI framework */
 	platform_set_drvdata(pdev, drv_data);
 	status = spi_register_master(master);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to