]> nv-tegra.nvidia Code Review - linux-3.10.git/blobdiff - drivers/net/spider_net.c
Spidernet Memory barrier
[linux-3.10.git] / drivers / net / spider_net.c
index 67bbd7ba406d19cf3507a4434848f9ba3ec55632..3bf4b9b6662a838e13447ca923e3946dbc271cf3 100644 (file)
@@ -419,6 +419,7 @@ spider_net_prepare_rx_descr(struct spider_net_card *card,
                card->spider_stats.rx_iommu_map_error++;
                descr->dmac_cmd_status = SPIDER_NET_DESCR_NOT_IN_USE;
        } else {
                card->spider_stats.rx_iommu_map_error++;
                descr->dmac_cmd_status = SPIDER_NET_DESCR_NOT_IN_USE;
        } else {
+               wmb();
                descr->dmac_cmd_status = SPIDER_NET_DESCR_CARDOWNED |
                                         SPIDER_NET_DMAC_NOINTR_COMPLETE;
        }
                descr->dmac_cmd_status = SPIDER_NET_DESCR_CARDOWNED |
                                         SPIDER_NET_DMAC_NOINTR_COMPLETE;
        }