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

Commit 2f48c0c7 authored by Karthikeyan Ramasubramanian's avatar Karthikeyan Ramasubramanian
Browse files

platform: msm: qcom-geni-se: Fix the race condition during bus voting



When two bus votes are added, one of them is executed while the second one
performs nothing. But the thread that does the second vote continues and
accesses the yet-to-be-clocked registers while the thread that does the
first vote is working on the votes to be executed. This leads to unclocked
register access.

Replace the spin_lock that protects the bus voting logic with a mutex and
protect the entire bus voting logic with that lock.

CRs-Fixed: 2093107
Change-Id: I1852566891d507f5599c4227ff7655e2bfc84598
Signed-off-by: default avatarKarthikeyan Ramasubramanian <kramasub@codeaurora.org>
parent 2f89b761
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