From: Evgeniy Borisov Date: Mon, 18 Apr 2016 13:27:36 +0000 (+0300) Subject: greybus: camera-gb: Remove hardcode for CSI TX number of lanes X-Git-Tag: Ubuntu-5.13.0-19.19~14927^2~378^2~21^2~512 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=698bdcbf87f3c8a2f998058d58f4baa8ab8e192a;p=mirror_ubuntu-jammy-kernel.git greybus: camera-gb: Remove hardcode for CSI TX number of lanes The number of CSI TX lanes is hardcoded to 4. Removing this and start using value from configure stream response. NOTE: The patch depends on the CSI init change: "Use GB CSI params to init camera sub-devs" Signed-off-by: Evgeniy Borisov Reviewed-by: Gjorgji Rosikopulos Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c index d3ee5b7240db..956fbf05b8e0 100644 --- a/drivers/staging/greybus/camera.c +++ b/drivers/staging/greybus/camera.c @@ -304,7 +304,7 @@ static int gb_camera_configure_streams(struct gb_camera *gcam, if (nstreams) { csi_cfg.csi_id = 1; csi_cfg.flags = 0; - csi_cfg.num_lanes = 4; + csi_cfg.num_lanes = resp->num_lanes; csi_cfg.bus_freq = cpu_to_le32(960000000); csi_cfg.lines_per_second = resp->lines_per_second; ret = gb_hd_output(gcam->connection->hd, &csi_cfg,