From ad106a695ea19e6203c43e8f6c864444e8867167 Mon Sep 17 00:00:00 2001 From: Yong Ding Date: Tue, 26 Jun 2018 14:37:01 +0800 Subject: [PATCH] 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: Yong Ding --- drivers/soc/qcom/hab/hab.c | 2 +- include/uapi/linux/hab_ioctl.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/soc/qcom/hab/hab.c b/drivers/soc/qcom/hab/hab.c index 48d61870f776..ef249bcba68c 100644 --- a/drivers/soc/qcom/hab/hab.c +++ b/drivers/soc/qcom/hab/hab.c @@ -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; } diff --git a/include/uapi/linux/hab_ioctl.h b/include/uapi/linux/hab_ioctl.h index 83b5da236888..70e16433044e 100644 --- a/include/uapi/linux/hab_ioctl.h +++ b/include/uapi/linux/hab_ioctl.h @@ -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)