greybus: connection: generalise CPortFlags handling
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 3 Mar 2016 12:34:38 +0000 (13:34 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Sat, 5 Mar 2016 02:26:08 +0000 (18:26 -0800)
commit27f25c17ad7fa2b24a24a4e617077dec20a026ce
tree6ba52ef40c0cbceea4a8aba80714d5496a1e2ecd
parent34145b608d4198d7c89bfeffded6bc71012b6d79
greybus: connection: generalise CPortFlags handling

Generalise the svc connection-create helper to accept a cport-flags
argument and handle the flags in the connection code instead.

Note that the camera driver currently manages its data connection
directly. We keep E2EFC enabled for now even though it will soon need
to be disabled due to some pending firmware updates.

Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/camera.c
drivers/staging/greybus/connection.c
drivers/staging/greybus/svc.c
drivers/staging/greybus/svc.h