| Submitter | Zhang, Sonic |
|---|---|
| Date | May 31, 2009, 2:57 a.m. |
| Message ID | <0F1B54C89D5F954D8535DB252AF412FA041F17F9@chinexm1.ad.analog.com> |
| Download | mbox | patch |
| Permalink | /patch/27878/ |
| State | Not Applicable |
| Delegated to: | David Miller |
| Headers | show |
Comments
Patch
diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c index 1905532..38d34ce 100644 --- a/drivers/net/bfin_mac.c +++ b/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;