Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82693
b: refs/heads/master
c: 6e01d1a
h: refs/heads/master
i:
  82691: 08da5b3
v: v3
  • Loading branch information
Alexey Demin authored and David S. Miller committed Feb 3, 2008
1 parent 42c6e08 commit 289aed7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 136492b275e0dd02d842b94507d66267d18d341c
refs/heads/master: 6e01d1a4b2f7110201e7fe16e561a721d76fab3e
6 changes: 6 additions & 0 deletions trunk/drivers/net/bfin_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,12 @@ static void bf537mac_rx(struct net_device *dev)
current_rx_ptr->skb = new_skb;
current_rx_ptr->desc_a.start_addr = (unsigned long)new_skb->data - 2;

/* Invidate the data cache of skb->data range when it is write back
* cache. It will prevent overwritting the new data from DMA
*/
blackfin_dcache_invalidate_range((unsigned long)new_skb->head,
(unsigned long)new_skb->end);

len = (unsigned short)((current_rx_ptr->status.status_word) & RX_FRLEN);
skb_put(skb, len);
blackfin_dcache_invalidate_range((unsigned long)skb->head,
Expand Down

0 comments on commit 289aed7

Please sign in to comment.