greybus: camera: Configure link speed for the data connection
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 18 Dec 2015 19:23:23 +0000 (21:23 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 22 Dec 2015 00:34:46 +0000 (16:34 -0800)
Hardcode the speed to HS-G1 for now.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/camera.c

index 545ed63..f163689 100644 (file)
@@ -576,6 +576,16 @@ static int gb_camera_connection_init(struct gb_connection *connection)
        if (ret < 0)
                goto error;
 
+       ret = gb_svc_link_config(svc, connection->intf->interface_id,
+                                GB_SVC_LINK_CONFIG_BURST_HS_A, 1, 1, 0);
+       if (ret < 0)
+               goto error;
+
+       ret = gb_svc_link_config(svc, svc->ap_intf_id,
+                                GB_SVC_LINK_CONFIG_BURST_HS_A, 1, 1, 0);
+       if (ret < 0)
+               goto error;
+
        gcam->data_connected = true;
 
        ret = gb_camera_debugfs_init(gcam);