]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Replace doorbell barrier() with wmb()
authorSinan Kaya <okaya@codeaurora.org>
Sun, 25 Mar 2018 14:39:17 +0000 (10:39 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Mar 2018 16:47:55 +0000 (12:47 -0400)
commit9647100fe70301c0d2029dd35ee01e8e07b424cf
treeba3bfae798e8789e352faeb9d66fe352aff1a48a
parentc6cd6b4001fffe9a5f9c9922398a093a4b2d1a42
bnx2x: Replace doorbell barrier() with wmb()

barrier() doesn't guarantee memory writes to be observed by the hardware on
all architectures. barrier() only tells compiler not to move this code
with respect to other read/writes.

If memory write needs to be observed by the HW, wmb() is the right choice.

Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c