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

Commit d73c367d authored by Maya Erez's avatar Maya Erez
Browse files

wil6210: prevent external wmi commands during suspend flow



In __wmi_send we check if fw is ready at the beginning of the function.
While we wait for the completion of the previous command, system suspend
can be invoked and reset the HW, causing __wmi_send to read from HW
registers while it is not ready.
Taking the wmi_mutex in the reset flow when setting the FW ready bit
to zero will prevent the above race condition.

Change-Id: I5d2e823a27beaeaaf5b8b1e25457c158efd3ea46
Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
parent 031e28bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment