summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/camera.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2015-12-18 21:23:23 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2015-12-21 16:34:46 -0800
commitbcc050be962179f8004629b0869db8996eb8596c (patch)
tree1e98e4d0d658c8485cd74c5326b9a424e5201387 /drivers/staging/greybus/camera.c
parent784f87614a633f9cca12c35ebb3cbdb1e80452c6 (diff)
greybus: camera: Configure link speed for the data connection
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>
Diffstat (limited to 'drivers/staging/greybus/camera.c')
-rw-r--r--drivers/staging/greybus/camera.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c
index 545ed632901a..f163689f50a5 100644
--- a/drivers/staging/greybus/camera.c
+++ b/drivers/staging/greybus/camera.c
@@ -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);