Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7decc736 authored by Dedy Lansky's avatar Dedy Lansky
Browse files

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.

Change-Id: I8107d4ee8acafb2922ff86cd951540f97500de95
Signed-off-by: default avatarDedy Lansky <dlansky@codeaurora.org>
parent 0780e20a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment