diff options
author | Matt Porter <mporter@linaro.org> | 2014-09-30 16:01:40 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <greg@kroah.com> | 2014-09-30 15:39:00 -0700 |
commit | f0f70916fba72ca70235ca40db43030ec8f467ad (patch) | |
tree | ab19ac9e0b26f777d4908ed8311a497fb65b3a8a /drivers | |
parent | 51c75fd060a71dfdf4f836759a2b9300ae8af138 (diff) | |
download | op-kernel-dev-f0f70916fba72ca70235ca40db43030ec8f467ad.zip op-kernel-dev-f0f70916fba72ca70235ca40db43030ec8f467ad.tar.gz |
greybus: es1-ap-usb: adjust SVC buffer size to handle worst case
The worst case message from the SVC->AP is a hotplug "plugged"
event. It includes the module manifest which may be up to 64KB
in size. Adjust our buffer allocation to allow for this.
Signed-off-by: Matt Porter <mporter@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/greybus/es1-ap-usb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/greybus/es1-ap-usb.c b/drivers/staging/greybus/es1-ap-usb.c index 291da40..8df1643 100644 --- a/drivers/staging/greybus/es1-ap-usb.c +++ b/drivers/staging/greybus/es1-ap-usb.c @@ -9,12 +9,13 @@ #include <linux/module.h> #include <linux/slab.h> #include <linux/errno.h> +#include <linux/sizes.h> #include <linux/usb.h> #include "greybus.h" #include "svc_msg.h" /* Memory sizes for the buffers sent to/from the ES1 controller */ -#define ES1_SVC_MSG_SIZE 2048 +#define ES1_SVC_MSG_SIZE (sizeof(struct svc_msg) + SZ_64K) #define ES1_GBUF_MSG_SIZE PAGE_SIZE |