greybus: fill in destination data at send time
authorAlex Elder <elder@linaro.org>
Tue, 18 Nov 2014 19:26:41 +0000 (13:26 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 18 Nov 2014 20:46:15 +0000 (12:46 -0800)
commit0f4c808a7ea2ee3d81f5c3047bd14d7057cbfe37
tree30786a1cdac89fe14697c9be486f816cc2e004fa
parent06a4a061f1917ab6dfdddfbf4a13c0a87f207602
greybus: fill in destination data at send time

For ES1 we need to insert the destination CPort id before the data
to be sent over UniPro.  Currently this is done at the time the
buffer is created, but there's no need to do so until we're actually
going to send the content of the buffer.

Move the setting of that destination information into submit_gbuf().
Note that this allows us to defer initializing a few other gbuf
fields until after we know the buffer allocation has succeeded.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/es1-ap-usb.c
drivers/staging/greybus/operation.c