summaryrefslogtreecommitdiff
path: root/drivers/hwmon/adcxx.c
diff options
context:
space:
mode:
authorEsben Haabendal <esben@geanix.com>2021-06-18 13:52:28 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-18 22:11:51 +0300
commit28d9fab458b16bcd83f9dd07ede3d585c3e1a69e (patch)
treed6fd491dbf94b179dc2d4cd04d88e87f07b3267a /drivers/hwmon/adcxx.c
parent6aa32217a9a446275440ee8724b1ecaf1838df47 (diff)
downloadlinux-28d9fab458b16bcd83f9dd07ede3d585c3e1a69e.tar.xz
net: ll_temac: Add memory-barriers for TX BD access
Add a couple of memory-barriers to ensure correct ordering of read/write access to TX BDs. In xmit_done, we should ensure that reading the additional BD fields are only done after STS_CTRL_APP0_CMPLT bit is set. When xmit_done marks the BD as free by setting APP0=0, we need to ensure that the other BD fields are reset first, so we avoid racing with the xmit path, which writes to the same fields. Finally, making sure to read APP0 of next BD after the current BD, ensures that we see all available buffers. Signed-off-by: Esben Haabendal <esben@geanix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/hwmon/adcxx.c')
0 files changed, 0 insertions, 0 deletions