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

Commit b3f4d167 authored by Praveen Kurapati's avatar Praveen Kurapati
Browse files

msm: ipa3: add rmnet_ctl enablement check



Add changes to check if rmnet_ctl support present
or not.

Change-Id: Ic99811ffcedbe474eeb80637e61901b55e448372
Signed-off-by: default avatarPraveen Kurapati <pkurapat@codeaurora.org>
parent a890ae3b
Loading
Loading
Loading
Loading
+15 −12
Original line number Original line Diff line number Diff line
@@ -1571,13 +1571,14 @@ static int handle3_ingress_format(struct net_device *dev,
	}
	}
	IPAWANDBG("ingress WAN pipe setup successfully\n");
	IPAWANDBG("ingress WAN pipe setup successfully\n");


	if (ipa3_ctx->rmnet_ctl_enable) {
		ret = ipa3_setup_apps_low_lat_cons_pipe();
		ret = ipa3_setup_apps_low_lat_cons_pipe();
		if (ret)
		if (ret)
			goto low_lat_fail;
			goto low_lat_fail;


		ingress_eps_mask |= IPA_AP_INGRESS_EP_LOW_LAT;
		ingress_eps_mask |= IPA_AP_INGRESS_EP_LOW_LAT;

		IPAWANDBG("ingress low latency pipe setup successfully\n");
		IPAWANDBG("ingress low latency pipe setup successfully\n");
	}


low_lat_fail:
low_lat_fail:
	mutex_unlock(&rmnet_ipa3_ctx->pipe_handle_guard);
	mutex_unlock(&rmnet_ipa3_ctx->pipe_handle_guard);
@@ -1698,6 +1699,7 @@ static int handle3_egress_format(struct net_device *dev,
		return rc;
		return rc;
	}
	}
	IPAWANDBG("engress WAN pipe setup successfully\n");
	IPAWANDBG("engress WAN pipe setup successfully\n");
	if (ipa3_ctx->rmnet_ctl_enable) {
		rc = ipa3_setup_apps_low_lat_prod_pipe();
		rc = ipa3_setup_apps_low_lat_prod_pipe();
		if (rc) {
		if (rc) {
			IPAWANERR("failed to setup egress low lat endpoint\n");
			IPAWANERR("failed to setup egress low lat endpoint\n");
@@ -1705,6 +1707,7 @@ static int handle3_egress_format(struct net_device *dev,
			goto low_lat_fail;
			goto low_lat_fail;
		}
		}
		IPAWANDBG("engress low lat pipe setup successfully\n");
		IPAWANDBG("engress low lat pipe setup successfully\n");
	}
	mutex_unlock(&rmnet_ipa3_ctx->pipe_handle_guard);
	mutex_unlock(&rmnet_ipa3_ctx->pipe_handle_guard);


low_lat_fail:
low_lat_fail: