net: calxedaxgmac: update ring buffer tx_head after barriers
authorRob Herring <rob.herring@calxeda.com>
Fri, 30 Aug 2013 21:49:23 +0000 (16:49 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2013 02:21:15 +0000 (22:21 -0400)
commitca32723afedd65d612029705446bf44bde5eab14
treeab65afe5d86f42a087990bce3b94f36470ac58b6
parent1a1d4d2f30a3c7e91bb7876df95baae363be5434
net: calxedaxgmac: update ring buffer tx_head after barriers

Ensure that the descriptor writes are visible before the ring buffer head
is updated. Since writel is a barrier, we can simply update the head after
the writel.

Reported-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/calxeda/xgmac.c