Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 576ac265 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm:ipa: continue ODL logging on MHIP post modem SSR"

parents ecb6d426 5ff2bfe5
Loading
Loading
Loading
Loading
+13 −6
Original line number Diff line number Diff line
@@ -2444,12 +2444,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,
	/* 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;