Skip to content

Commit

Permalink
[PATCH] skge: use mmiowb
Browse files Browse the repository at this point in the history
Add mmio barriers at the appropriate places, don't have a platform
that needs them, but this is where the documentation of the patch
says to add them.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed Mar 21, 2006
1 parent ff7907a commit c68ce71
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/net/skge.c
Original file line number Diff line number Diff line change
Expand Up @@ -2394,9 +2394,11 @@ static int skge_xmit_frame(struct sk_buff *skb, struct net_device *dev)
netif_stop_queue(dev);
}

dev->trans_start = jiffies;
mmiowb();
spin_unlock(&skge->tx_lock);

dev->trans_start = jiffies;

return NETDEV_TX_OK;
}

Expand Down Expand Up @@ -2730,6 +2732,8 @@ static int skge_poll(struct net_device *dev, int *budget)
return 1; /* not done */

netif_rx_complete(dev);
mmiowb();

hw->intr_mask |= skge->port == 0 ? (IS_R1_F|IS_XA1_F) : (IS_R2_F|IS_XA2_F);
skge_write32(hw, B0_IMSK, hw->intr_mask);

Expand Down

0 comments on commit c68ce71

Please sign in to comment.