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

Commit 3010e19e authored by Mohammed Javid's avatar Mohammed Javid Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: Add get ep info ioctl iface only for auto use case



In legacy use case, get ep info will be handled by usb driver.
Modify code to support get ep_info only in case of auto use case.

Change-Id: I1a9800ca397315d0da5b03503f7297ce5bc230f3
Signed-off-by: default avatarMohammed Javid <mjavid@codeaurora.org>
parent 3364ad12
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2061,6 +2061,8 @@ 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 (copy_from_user(&ep_info, (const void __user *)arg,
			sizeof(struct ipa_ioc_get_ep_info))) {
			IPAERR_RL("copy_from_user fails\n");