mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
Merge "soundwire: return error if vote for LPASS HW Core fails"
This commit is contained in:
commit
8105363ccb
1 changed files with 10 additions and 2 deletions
|
|
@ -1447,8 +1447,15 @@ static irqreturn_t swr_mstr_interrupt_v2(int irq, void *dev)
|
|||
}
|
||||
|
||||
mutex_lock(&swrm->reslock);
|
||||
if (swrm->lpass_core_hw_vote)
|
||||
clk_prepare_enable(swrm->lpass_core_hw_vote);
|
||||
if (swrm->lpass_core_hw_vote) {
|
||||
ret = clk_prepare_enable(swrm->lpass_core_hw_vote);
|
||||
if (ret < 0) {
|
||||
dev_err(dev, "%s:lpass core hw enable failed\n",
|
||||
__func__);
|
||||
ret = IRQ_NONE;
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
swrm_clk_request(swrm, true);
|
||||
mutex_unlock(&swrm->reslock);
|
||||
|
||||
|
|
@ -1618,6 +1625,7 @@ handle_irq:
|
|||
swrm_clk_request(swrm, false);
|
||||
if (swrm->lpass_core_hw_vote)
|
||||
clk_disable_unprepare(swrm->lpass_core_hw_vote);
|
||||
exit:
|
||||
mutex_unlock(&swrm->reslock);
|
||||
swrm_unlock_sleep(swrm);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue