summaryrefslogtreecommitdiff
path: root/Documentation/hwmon/ir35221.rst
diff options
context:
space:
mode:
authorDedy Lansky <dlansky@codeaurora.org>2019-09-10 16:46:29 +0300
committerKalle Valo <kvalo@codeaurora.org>2019-09-12 18:06:53 +0300
commitf4519fd9375d310c608f9a47e4f3a0579bc94998 (patch)
treed8c94c105a1d4f0a685888dc03226ff218ea2210 /Documentation/hwmon/ir35221.rst
parent42fe1e519e9f1c6f554c0183f8c9cdd92036cbbf (diff)
wil6210: make sure DR bit is read before rest of the status message
Due to compiler optimization, it's possible that dr_bit (descriptor ready) is read last from the status message. Due to race condition between HW writing the status message and driver reading it, other fields that were read earlier (before dr_bit) could have invalid values. Fix this by explicitly reading the dr_bit first and then using rmb before reading the rest of the status message. Signed-off-by: Dedy Lansky <dlansky@codeaurora.org> Signed-off-by: Maya Erez <merez@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'Documentation/hwmon/ir35221.rst')
0 files changed, 0 insertions, 0 deletions