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

Commit 2a5a5ee6 authored by sivakanth reddy vaka's avatar sivakanth reddy vaka
Browse files

mdm: ipa3: fixing clock gating issue when auto config is disabled



when auto config is disabled get_ep_info ioctl returns error
without decrementing the clock count due to which clock is
not getting gated.

Change-Id: I1ae6a7e3074861351e4ed61c7d83f96d55de721b
Signed-off-by: default avatarsivakanth reddy vaka <svaka@codeaurora.org>
parent e34517a4
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -2061,8 +2061,11 @@ static long ipa3_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)

	case IPA_IOC_GET_PHERIPHERAL_EP_INFO:
		IPADBG("Got IPA_IOC_GET_EP_INFO\n");
		if (ipa3_ctx->ipa_config_is_auto == false)
			return -ENOTTY;
		if (ipa3_ctx->ipa_config_is_auto == false) {
			IPADBG("not an auto config: returning error\n");
			retval = -ENOTTY;
			break;
		}
		if (copy_from_user(&ep_info, (const void __user *)arg,
			sizeof(struct ipa_ioc_get_ep_info))) {
			IPAERR_RL("copy_from_user fails\n");