summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSubhash Jadavani <subhashj@codeaurora.org>2018-02-06 14:57:11 -0800
committerMichael Bestas <mkbestas@lineageos.org>2019-12-23 23:43:33 +0200
commit72d4dcb3d41606d5f47bbf88b6fe6ec15f797318 (patch)
treee31acf705963e063f8057da081dfefe97ff5e79d /scripts
parenta06cbd1a2ca2c350ecb2e072580c182e0d28e6f4 (diff)
scsi: ufs: synchronize between rls handler and clock scaling
Fix race condition between rls handler thread and clock scaling thread when LINERESET indication is sent out from host controller. A known scenario is when clock scaling thread has put link to hibern8 after gear scaling down is done, if rls handler thread, scheduled because of LINERESET indication from controller, starts to run now to scale gear up (PWM to HS), it would fail as the link state is still in hibern8 state. This change fixes this race condition by using write semaphore to prevent rls handler thread and clock scaling thread getting chance to run simultaneously. Change-Id: Ia1731c921c42155cacb43029d56491ddffcf2ee2 Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org> Signed-off-by: Can Guo <cang@codeaurora.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions