From: Laurent Pinchart Date: Fri, 18 Dec 2015 19:23:23 +0000 (+0200) Subject: greybus: camera: Configure link speed for the data connection X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bcc050be962179f8004629b0869db8996eb8596c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git greybus: camera: Configure link speed for the data connection Hardcode the speed to HS-G1 for now. Signed-off-by: Laurent Pinchart Signed-off-by: Greg Kroah-Hartman --- 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);