Title: [6508] branches/2009R1/drivers/net/bfin_mac.c: Make sure data is really written into DMA NEXT_DESC_PRT register
- Revision
- 6508
- Author
- sonicz
- Date
- 2009-05-30 21:54:40 -0500 (Sat, 30 May 2009)
Log Message
Make sure data is really written into DMA NEXT_DESC_PRT register
before enabling the DMA controller.
Modified Paths
Diff
Modified: branches/2009R1/drivers/net/bfin_mac.c (6507 => 6508)
--- branches/2009R1/drivers/net/bfin_mac.c 2009-05-31 02:52:39 UTC (rev 6507)
+++ branches/2009R1/drivers/net/bfin_mac.c 2009-05-31 02:54:40 UTC (rev 6508)
@@ -641,9 +641,6 @@
(u32)(current_tx_ptr->packet + skb->len + 2));
}
- /* Make sure data is really written into registers before enabling DMA */
- SSYNC();
-
/* enable this packet's dma */
current_tx_ptr->desc_a.config |= DMAEN;
@@ -653,6 +650,10 @@
/* tx dma is not running */
bfin_write_DMA2_NEXT_DESC_PTR(&(current_tx_ptr->desc_a));
+ /* Make sure data is really written into DMA NEXT_DESC_PRT register
+ * before enabling the DMA controller.
+ */
+ SSYNC();
/* dma enabled, read from memory, size is 6 */
bfin_write_DMA2_CONFIG(current_tx_ptr->desc_a.config);
/* Turn on the EMAC tx */
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits