mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
drivers: qcom: rpmh-rsc: do not read back the register write on trigger
When triggering a TCS to send its contents, reading back the trigger value may return an incorrect value. That is because, writing the trigger may raise an interrupt which could be handled immediately and the trigger value could be reset in the interrupt handler. A write_tcs_reg_sync() would read back the value that is written and try to match it to the value written to ensure that the value is written, but if that value is different, we are stuck in loop forever. Change-Id: I54866b9b9d85fa79c8df84aecd502764b9f9158a Signed-off-by: Lina Iyer <ilina@codeaurora.org>
This commit is contained in:
parent
3178aaf4dc
commit
896270c7ef
1 changed files with 1 additions and 1 deletions
|
|
@ -303,7 +303,7 @@ static void __tcs_trigger(struct rsc_drv *drv, int tcs_id)
|
|||
enable = TCS_AMC_MODE_ENABLE;
|
||||
write_tcs_reg_sync(drv, RSC_DRV_CONTROL, tcs_id, enable);
|
||||
enable |= TCS_AMC_MODE_TRIGGER;
|
||||
write_tcs_reg_sync(drv, RSC_DRV_CONTROL, tcs_id, enable);
|
||||
write_tcs_reg(drv, RSC_DRV_CONTROL, tcs_id, enable);
|
||||
}
|
||||
|
||||
static int check_for_req_inflight(struct rsc_drv *drv, struct tcs_group *tcs,
|
||||
|
|
|
|||
Loading…
Reference in a new issue