From 8a0b4ddbd3f0a950d1ce8e7a88a255a8cf1c0de3 Mon Sep 17 00:00:00 2001 From: Sonic Zhang Date: Fri, 29 May 2009 03:40:43 +0000 Subject: [PATCH] --- yaml --- r: 150566 b: refs/heads/master c: 805a8ab3ce1be83e9a98c21a625ebbb549a2d317 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/net/bfin_mac.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 68541df949fe..cf2d17530596 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 91a455f089810625eb94a36ccc40ae963f451b06 +refs/heads/master: 805a8ab3ce1be83e9a98c21a625ebbb549a2d317 diff --git a/trunk/drivers/net/bfin_mac.c b/trunk/drivers/net/bfin_mac.c index 1905532d0940..38d34cec65a3 100644 --- a/trunk/drivers/net/bfin_mac.c +++ b/trunk/drivers/net/bfin_mac.c @@ -688,6 +688,12 @@ static int bfin_mac_hard_start_xmit(struct sk_buff *skb, } } + /* make sure the internal data buffers in the core are drained + * so that the DMA descriptors are completely written when the + * DMA engine goes to fetch them below + */ + SSYNC(); + /* enable this packet's dma */ current_tx_ptr->desc_a.config |= DMAEN;