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

Commit f464850a authored by Sivan Reinstein's avatar Sivan Reinstein
Browse files

msm: ipa: set IPA_ENDP_STATUS to 0 for IPA BAM2BAM pipes



When a BAM2BAM end-point is configured via IPA core
driver, the ENDP_STATUS register needs to be initialized
to 0.

Change-Id: Ide1490da3cd0190c1f8f3da2f60c4d570336fbe1
CRs-fixed: 775498
Acked-by: default avatarDavid Arinzon <darinzon@qti.qualcomm.com>
Signed-off-by: default avatarSivan Reinsten <sivanr@codeaurora.org>
parent 18c43109
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -194,6 +194,7 @@ int ipa_connect(const struct ipa_connect_params *in, struct ipa_sps_params *sps,
	int ipa_ep_idx;
	int result = -EFAULT;
	struct ipa_ep_context *ep;
	struct ipa_ep_cfg_status ep_status;

	IPADBG("connecting client\n");

@@ -239,6 +240,12 @@ int ipa_connect(const struct ipa_connect_params *in, struct ipa_sps_params *sps,
			IPAERR("fail to configure EP.\n");
			goto ipa_cfg_ep_fail;
		}
		/* Setting EP status 0 */
		memset(&ep_status, 0, sizeof(ep_status));
		if (ipa_cfg_ep_status(ipa_ep_idx, &ep_status)) {
			IPAERR("fail to configure status of EP.\n");
			goto ipa_cfg_ep_fail;
		}
		IPADBG("ep configuration successful\n");
	} else {
		IPADBG("Skipping endpoint configuration.\n");