Commit cbba76f5 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

greybus: remove obsolete buffer-alignment requirement



Remove unused and unnecessary buffer-alignment define that host driver
were supposed to use.

We can handle unaligned incoming buffers just fine by accessing the
operation-message header via a copy in the receive path, rather than
requiring host drivers to make sure the alignment is correct.

Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 564c72b1
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -79,9 +79,6 @@ struct svc_msg;
 */
#define GB_BUFFER_HEADROOM_MAX		sizeof(u64)

/* Buffers allocated from the host driver will be aligned to this multiple */
#define GB_BUFFER_ALIGN	sizeof(u32)

/* Greybus "Host driver" structure, needed by a host controller driver to be
 * able to handle both SVC control as well as "real" greybus messages
 */