OSDN Git Service

greybus: esX: encapsulate packing cport id into header
authorAlex Elder <elder@linaro.org>
Sat, 13 Jun 2015 16:02:08 +0000 (11:02 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 15 Jun 2015 23:49:00 +0000 (16:49 -0700)
commitd29b3d631e572400b45b5f9e48e432493663b0fc
treed1facc41de97a820220aaedaf1ecc33ae951bac5
parent821c620afa1ad29be6a85a9a3f691e32e973a317
greybus: esX: encapsulate packing cport id into header

For the ES1 and ES2 host interfaces we encode the CPort ID over
which the message should be sent within the message itself.  The
CPort ID is recorded in unused pad bytes found in the operation
message header in order to avoid introducing misaligned messages.

This patch defines some helper routines to abstract this activity.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/es1.c
drivers/staging/greybus/es2.c