]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
greybus: prepend cport byte for all gbufs
authorAlex Elder <elder@linaro.org>
Tue, 18 Nov 2014 19:26:39 +0000 (13:26 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 18 Nov 2014 20:46:15 +0000 (12:46 -0800)
commit5259ef138cbc78c537ca9f375eb0d18f21320c01
tree910918dfa33e4d910cc51eeed6f80a46c81df0d9
parent4f83b8d34964ef343afe5e8f731a0e37e311a42d
greybus: prepend cport byte for all gbufs

Treat communication buffers for both inbound and outbound data the
same way, prepending a "destination cport id" byte before the data
in the buffer.  Currently this is done only for outbound data
buffers.

This isn't needed for inbound data, but handling it this way
allows the free routine to work without knowing whether the
buffer was used for sending or receiving.

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