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

Commit 1891d02a authored by Chris Lew's avatar Chris Lew
Browse files

soc: qcom: glink_pkt: Add intent ioctl handling



Add support for the previously supported ioctl to queue an rx intent.
RPMSG queues intents for clients automatically, the ioctl to queue
them is no longer needed. Return success so userspace client logic
is not broken.

Change-Id: I74407c10f8163944575fd9fc33386cfbce98d08b
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 5f228f0a
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -83,6 +83,10 @@ do { \
	sigs &= 0x0fff; \
} while (0)

#define GLINK_PKT_IOCTL_MAGIC (0xC3)

#define GLINK_PKT_IOCTL_QUEUE_RX_INTENT \
	_IOW(GLINK_PKT_IOCTL_MAGIC, 0, unsigned int)

#define MODULE_NAME "glink_pkt"
static dev_t glink_pkt_major;
@@ -588,9 +592,10 @@ static long glink_pkt_ioctl(struct file *file, unsigned int cmd,
	case TIOCMBIC:
		ret = glink_pkt_tiocmset(gpdev, cmd, arg);
		break;
	/*
	 * Need to add support later any intent requirements.
	 */
	case GLINK_PKT_IOCTL_QUEUE_RX_INTENT:
		/* Return success to not break userspace client logic */
		ret = 0;
		break;
	default:
		GLINK_PKT_ERR("unrecognized ioctl command 0x%x\n", cmd);
		ret = -ENOIOCTLCMD;