diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2015-05-19 11:22:43 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-05-20 22:51:05 -0700 |
commit | d933667a1e44be0d3fa137ec31686303c42c16fc (patch) | |
tree | d2d1b50293a4f4e5d40a4b9ac491f74c93be0f15 /drivers/staging/greybus/operation.h | |
parent | d966820f2c28c621d4912a8277fa43a69242e8d5 (diff) | |
download | op-kernel-dev-d933667a1e44be0d3fa137ec31686303c42c16fc.zip op-kernel-dev-d933667a1e44be0d3fa137ec31686303c42c16fc.tar.gz |
greybus: fix host-device buffer constraints
Host devices impose buffer-size constraints on Greybus core which are
taken into account when allocating messages.
Make sure to verify these constraints when the host device is allocated,
rather than when the first message is allocated.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/operation.h')
-rw-r--r-- | drivers/staging/greybus/operation.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/greybus/operation.h b/drivers/staging/greybus/operation.h index 82b8fe5..3b02db5 100644 --- a/drivers/staging/greybus/operation.h +++ b/drivers/staging/greybus/operation.h @@ -69,6 +69,8 @@ struct gb_operation_msg_hdr { __u8 pad[2]; /* must be zero (ignore when read) */ } __aligned(sizeof(u64)); +#define GB_OPERATION_MESSAGE_SIZE_MAX 4096 + /* * Protocol code should only examine the payload and payload_size * fields. All other fields are intended to be private to the |