From: Johan Hovold Date: Tue, 19 May 2015 09:22:44 +0000 (+0200) Subject: greybus: operation: allow maximum-sized messages X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1524 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c38cf10bbe35ba6fa10437809585fd4d0b3b604d;p=karo-tx-linux.git greybus: operation: allow maximum-sized messages Increase the maximum allowed buffer size to the full 16-bit range supported by the protocol. Note that host devices will generally use smaller buffers than the maximum. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/operation.h b/drivers/staging/greybus/operation.h index 3b02db5cd08b..1edd512d9a76 100644 --- a/drivers/staging/greybus/operation.h +++ b/drivers/staging/greybus/operation.h @@ -69,7 +69,7 @@ struct gb_operation_msg_hdr { __u8 pad[2]; /* must be zero (ignore when read) */ } __aligned(sizeof(u64)); -#define GB_OPERATION_MESSAGE_SIZE_MAX 4096 +#define GB_OPERATION_MESSAGE_SIZE_MAX U16_MAX /* * Protocol code should only examine the payload and payload_size