From: Matt Porter Date: Tue, 30 Sep 2014 20:01:40 +0000 (-0400) Subject: greybus: es1-ap-usb: adjust SVC buffer size to handle worst case X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~2072 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f0f70916fba72ca70235ca40db43030ec8f467ad;p=karo-tx-linux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/es1-ap-usb.c b/drivers/staging/greybus/es1-ap-usb.c index 291da4018cc0..8df16437cc8b 100644 --- a/drivers/staging/greybus/es1-ap-usb.c +++ b/drivers/staging/greybus/es1-ap-usb.c @@ -9,12 +9,13 @@ #include #include #include +#include #include #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