]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/net/ethernet/broadcom/tg3.c
drivers: Remove explicit invocations of mmiowb()
[linux.git] / drivers / net / ethernet / broadcom / tg3.c
index 328373e0578ff83bf5d5bb336103deba33144e99..821bccc0915c64f9b0c652c1688b40007d2bdc1c 100644 (file)
@@ -1073,7 +1073,6 @@ static void tg3_int_reenable(struct tg3_napi *tnapi)
        struct tg3 *tp = tnapi->tp;
 
        tw32_mailbox(tnapi->int_mbox, tnapi->last_tag << 24);
-       mmiowb();
 
        /* When doing tagged status, this work check is unnecessary.
         * The last_tag we write above tells the chip which piece of
@@ -6999,7 +6998,6 @@ static int tg3_rx(struct tg3_napi *tnapi, int budget)
                        tw32_rx_mbox(TG3_RX_JMB_PROD_IDX_REG,
                                     tpr->rx_jmb_prod_idx);
                }
-               mmiowb();
        } else if (work_mask) {
                /* rx_std_buffers[] and rx_jmb_buffers[] entries must be
                 * updated before the producer indices can be updated.
@@ -7210,8 +7208,6 @@ static int tg3_poll_work(struct tg3_napi *tnapi, int work_done, int budget)
                        tw32_rx_mbox(TG3_RX_JMB_PROD_IDX_REG,
                                     dpr->rx_jmb_prod_idx);
 
-               mmiowb();
-
                if (err)
                        tw32_f(HOSTCC_MODE, tp->coal_now);
        }
@@ -7278,7 +7274,6 @@ static int tg3_poll_msix(struct napi_struct *napi, int budget)
                                                  HOSTCC_MODE_ENABLE |
                                                  tnapi->coal_now);
                        }
-                       mmiowb();
                        break;
                }
        }
@@ -8159,7 +8154,6 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev)
        if (!skb->xmit_more || netif_xmit_stopped(txq)) {
                /* Packets are ready, update Tx producer idx on card. */
                tw32_tx_mbox(tnapi->prodmbox, entry);
-               mmiowb();
        }
 
        return NETDEV_TX_OK;