mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
msm:ipa: continue ODL logging on MHIP post modem SSR
Post modem SSR, check if previously ODL was connected and if yes connect back ODL from mhip probe. Change-Id: If0a2cc4a6e9c0a9836ea85fa62677f0c8a6f0e44 Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
This commit is contained in:
parent
a347cbb376
commit
b5eb1a5688
1 changed files with 13 additions and 6 deletions
|
|
@ -2338,12 +2338,19 @@ static int ipa_mpm_mhi_probe_cb(struct mhi_device *mhi_dev,
|
|||
}
|
||||
|
||||
atomic_inc(&ipa_mpm_ctx->probe_cnt);
|
||||
/* Check if ODL pipe is connected to MHIP DPL pipe before probe */
|
||||
if (probe_id == IPA_MPM_MHIP_CH_ID_2 &&
|
||||
ipa3_is_odl_connected()) {
|
||||
IPA_MPM_DBG("setting DPL DMA to ODL\n");
|
||||
ret = ipa_mpm_set_dma_mode(IPA_CLIENT_MHI_PRIME_DPL_PROD,
|
||||
IPA_CLIENT_USB_DPL_CONS, false);
|
||||
/* Check if ODL/USB DPL pipe is connected before probe */
|
||||
if (probe_id == IPA_MPM_MHIP_CH_ID_2) {
|
||||
if (ipa3_is_odl_connected())
|
||||
ret = ipa_mpm_set_dma_mode(
|
||||
IPA_CLIENT_MHI_PRIME_DPL_PROD,
|
||||
IPA_CLIENT_ODL_DPL_CONS, false);
|
||||
else if (atomic_read(&ipa_mpm_ctx->adpl_over_usb_available))
|
||||
ret = ipa_mpm_set_dma_mode(
|
||||
IPA_CLIENT_MHI_PRIME_DPL_PROD,
|
||||
IPA_CLIENT_USB_DPL_CONS, false);
|
||||
if (ret)
|
||||
IPA_MPM_ERR("DPL DMA to ODL/USB failed, ret = %d\n",
|
||||
ret);
|
||||
}
|
||||
mutex_lock(&ipa_mpm_ctx->md[probe_id].mhi_mutex);
|
||||
ipa_mpm_ctx->md[probe_id].init_complete = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue