diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2015-05-19 11:22:44 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-05-20 22:51:05 -0700 |
commit | c38cf10bbe35ba6fa10437809585fd4d0b3b604d (patch) | |
tree | dc973a48db4279b0211a5a027ba0deca143351f0 | |
parent | d933667a1e44be0d3fa137ec31686303c42c16fc (diff) |
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 <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
-rw-r--r-- | drivers/staging/greybus/operation.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |