diff options
author | Zumeng Chen <zumeng.chen@windriver.com> | 2016-11-28 16:55:00 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-30 04:33:55 +0300 |
commit | ffac0e967f20b7637936dbaa21df08c55f672604 (patch) | |
tree | 0b79a616d557f4646a717cebc75911a3803670bf /net | |
parent | a0b44eea372b449ef9744fb1d90491cc063289b8 (diff) | |
download | linux-ffac0e967f20b7637936dbaa21df08c55f672604.tar.xz |
net: macb: ensure ordering write to re-enable RX smoothly
When a hardware issue happened as described by inline comments, the register
write pattern looks like the following:
<write ~MACB_BIT(RE)>
+ wmb();
<write MACB_BIT(RE)>
There might be a memory barrier between these two write operations, so add wmb
to ensure an flip from 0 to 1 for NCR.
Signed-off-by: Zumeng Chen <zumeng.chen@windriver.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions