]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8d056133fa546d9044e584dd0ca3dc7b1659bb57
treeab65afe5d86f42a087990bce3b94f36470ac58b6
parent3163cbca6b18cbe74f52c8846feaee99ce32d76f
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