Commit f0f70916 authored by Matt Porter's avatar Matt Porter Committed by Greg Kroah-Hartman

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: default avatarMatt Porter <mporter@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 51c75fd0
...@@ -9,12 +9,13 @@ ...@@ -9,12 +9,13 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/sizes.h>
#include <linux/usb.h> #include <linux/usb.h>
#include "greybus.h" #include "greybus.h"
#include "svc_msg.h" #include "svc_msg.h"
/* Memory sizes for the buffers sent to/from the ES1 controller */ /* 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 #define ES1_GBUF_MSG_SIZE PAGE_SIZE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment