]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] skge: use mmiowb
authorStephen Hemminger <shemminger@osdl.org>
Tue, 21 Mar 2006 18:57:04 +0000 (10:57 -0800)
committerJeff Garzik <jeff@garzik.org>
Tue, 21 Mar 2006 21:00:51 +0000 (16:00 -0500)
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>
drivers/net/skge.c

index 5ece10034df93e0f4878ef5314fe18c63bad3b3f..8c674cdecd7b16f6c552e1d24310fe40ad322d62 100644 (file)
@@ -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;
 }
 
@@ -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);