]> 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)
commit87ab32941fe845fd1ec2c842c080f0f3f3495ee3
treeab65afe5d86f42a087990bce3b94f36470ac58b6
parentbc794856a15ce880d1680aabd6b8b96fbfd2d18c
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