mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
dsp: voice_mhi: reset vote count at modem restart
MHI devote is not required when modem restarts during a voice call, which results in PCIe down notification. Hence, vote count is reset to zero when modem restart is received. Change-Id: Ia2a7bb98f21d5130520489c8f2d20a04d41f03b4 Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
This commit is contained in:
parent
c2acbee602
commit
0a7307c180
1 changed files with 5 additions and 1 deletions
|
|
@ -235,8 +235,11 @@ int voice_mhi_start(void)
|
|||
ret = -EINVAL;
|
||||
goto done;
|
||||
}
|
||||
pr_debug("%s: mhi_device_get_sync success\n", __func__);
|
||||
} else {
|
||||
/* For DSDA, no additional voting is needed */
|
||||
pr_debug("%s: mhi is already voted\n", __func__);
|
||||
}
|
||||
pr_debug("%s: mhi_device_get_sync success\n", __func__);
|
||||
voice_mhi_lcl.vote_count++;
|
||||
} else {
|
||||
/* PCIe not supported - return success*/
|
||||
|
|
@ -438,6 +441,7 @@ static void voice_mhi_pcie_down_callback(struct mhi_device *voice_mhi_dev)
|
|||
DMA_BIDIRECTIONAL, 0);
|
||||
|
||||
voice_mhi_lcl.mhi_dev = NULL;
|
||||
voice_mhi_lcl.vote_count = 0;
|
||||
mutex_unlock(&voice_mhi_lcl.mutex);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue