summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/camera.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-03-03 13:34:38 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-03-04 18:26:08 -0800
commit27f25c17ad7fa2b24a24a4e617077dec20a026ce (patch)
tree6ba52ef40c0cbceea4a8aba80714d5496a1e2ecd /drivers/staging/greybus/camera.c
parent34145b608d4198d7c89bfeffded6bc71012b6d79 (diff)
downloadlinux-27f25c17ad7fa2b24a24a4e617077dec20a026ce.tar.bz2
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>
Diffstat (limited to 'drivers/staging/greybus/camera.c')
-rw-r--r--drivers/staging/greybus/camera.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c
index 444e218e15ab..3ca585f08b85 100644
--- a/drivers/staging/greybus/camera.c
+++ b/drivers/staging/greybus/camera.c
@@ -817,6 +817,7 @@ static int gb_camera_connection_init(struct gb_connection *connection)
{
struct gb_svc *svc = connection->hd->svc;
struct gb_camera *gcam;
+ u8 cport_flags;
int ret;
gcam = kzalloc(sizeof(*gcam), GFP_KERNEL);
@@ -830,9 +831,12 @@ static int gb_camera_connection_init(struct gb_connection *connection)
* Create the data connection between camera module CDSI0 and APB CDS1.
* The CPort IDs are hardcoded by the ES2 bridges.
*/
+ /* FIXME: remove E2EFC */
+ cport_flags = GB_SVC_CPORT_FLAG_E2EFC | GB_SVC_CPORT_FLAG_CSD_N |
+ GB_SVC_CPORT_FLAG_CSV_N;
ret = gb_svc_connection_create(svc, connection->intf->interface_id,
ES2_APB_CDSI0_CPORT, svc->ap_intf_id,
- ES2_APB_CDSI1_CPORT, false);
+ ES2_APB_CDSI1_CPORT, cport_flags);
if (ret < 0)
goto error;