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

Commit ad106a69 authored by Yong Ding's avatar Yong Ding
Browse files

soc: qcom: hab: increase the maximum size of message



Previously, the supported maximum size of message sent
over hab was 4K bytes. Now, it is increased to 0xFFFF
bytes.

Change-Id: I3b539e42df2f5c5d3be4bbac7084adeb198c9a0b
Signed-off-by: default avatarYong Ding <yongding@codeaurora.org>
parent c7a3fb0e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1148,7 +1148,7 @@ static long hab_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
		break;
	case IOCTL_HAB_SEND:
		send_param = (struct hab_send *)data;
		if (send_param->sizebytes > HAB_MAX_MSG_SIZEBYTES) {
		if (send_param->sizebytes > HAB_HEADER_SIZE_MASK) {
			ret = -EINVAL;
			break;
		}
+0 −1
Original line number Diff line number Diff line
@@ -69,7 +69,6 @@ struct hab_info {
};

#define HAB_IOC_TYPE 0x0A
#define HAB_MAX_MSG_SIZEBYTES 0x1000

#define IOCTL_HAB_SEND \
	_IOW(HAB_IOC_TYPE, 0x2, struct hab_send)