From cce310367603f8a91be0078bb6ddef2fecaf64ad Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 9 Jun 2015 13:47:48 -0700 Subject: [PATCH] greybus: es?: decrease buffer size to 2k The firmware is having a hard time with 4k buffers and memory allocation, so decrease the size on the host side to 2k. Also move away from using PAGE_SIZE to denote 4k as that's not the case on all architectures, and someone, someday, might get a rude surprise. Reviewed-by: Alex Elder Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/es1.c | 2 +- drivers/staging/greybus/es2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/greybus/es1.c b/drivers/staging/greybus/es1.c index 2acfe74fc7b7..45241c37f1d4 100644 --- a/drivers/staging/greybus/es1.c +++ b/drivers/staging/greybus/es1.c @@ -24,7 +24,7 @@ /* Memory sizes for the buffers sent to/from the ES1 controller */ #define ES1_SVC_MSG_SIZE (sizeof(struct svc_msg) + SZ_64K) -#define ES1_GBUF_MSG_SIZE_MAX PAGE_SIZE +#define ES1_GBUF_MSG_SIZE_MAX 2048 static const struct usb_device_id id_table[] = { /* Made up numbers for the SVC USB Bridge in ES1 */ diff --git a/drivers/staging/greybus/es2.c b/drivers/staging/greybus/es2.c index 4f676cf3c583..b5b395f5c968 100644 --- a/drivers/staging/greybus/es2.c +++ b/drivers/staging/greybus/es2.c @@ -24,7 +24,7 @@ /* Memory sizes for the buffers sent to/from the ES1 controller */ #define ES1_SVC_MSG_SIZE (sizeof(struct svc_msg) + SZ_64K) -#define ES1_GBUF_MSG_SIZE_MAX PAGE_SIZE +#define ES1_GBUF_MSG_SIZE_MAX 2048 static const struct usb_device_id id_table[] = { /* Made up numbers for the SVC USB Bridge in ES2 */ -- 2.11.0