greybus: fix host-device buffer constraints
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 19 May 2015 09:22:43 +0000 (11:22 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 21 May 2015 05:51:05 +0000 (22:51 -0700)
commitd933667a1e44be0d3fa137ec31686303c42c16fc
treed2d1b50293a4f4e5d40a4b9ac491f74c93be0f15
parentd966820f2c28c621d4912a8277fa43a69242e8d5
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>
drivers/staging/greybus/core.c
drivers/staging/greybus/es1.c
drivers/staging/greybus/es2.c
drivers/staging/greybus/greybus.h
drivers/staging/greybus/operation.c
drivers/staging/greybus/operation.h