diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2020-01-23 01:07:26 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-05 17:18:27 +0300 |
commit | 3a8debf8b1ee9b3d87df1bdd86883717b793b9be (patch) | |
tree | 79d960ecc14cf60f600a837b885261f1756443c7 /drivers/of | |
parent | 3c8a4483d801cb8fd8eaf74faacfd6eebece7139 (diff) | |
download | linux-3a8debf8b1ee9b3d87df1bdd86883717b793b9be.tar.xz |
net/sonic: Use MMIO accessors
[ Upstream commit e3885f576196ddfc670b3d53e745de96ffcb49ab ]
The driver accesses descriptor memory which is simultaneously accessed by
the chip, so the compiler must not be allowed to re-order CPU accesses.
sonic_buf_get() used 'volatile' to prevent that. sonic_buf_put() should
have done so too but was overlooked.
Fixes: efcce839360f ("[PATCH] macsonic/jazzsonic network drivers update")
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/of')
0 files changed, 0 insertions, 0 deletions