net: qla3xxx: Eliminate duplicate barriers on weakly-ordered archs
commit3c95c567322e1dfaa7e0348171181aaf63aa6049
authorSinan Kaya <okaya@codeaurora.org>
Sun, 25 Mar 2018 14:39:15 +0000 (25 10:39 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Mar 2018 16:47:55 +0000 (26 12:47 -0400)
tree23e2ebcebaba2d72a4aa0be225eaed147658a741
parent14ef85b431feea48987a1082d6f4f3855a3badb5
net: qla3xxx: Eliminate duplicate barriers on weakly-ordered archs

Code includes wmb() followed by writel(). writel() already has a
barrier on some architectures like arm64.

This ends up CPU observing two barriers back to back before executing
the register write.

Since code already has an explicit barrier call, changing code to

wmb()
writel_relaxed()
mmiowb()

for multi-arch support.

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