Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eaa62937 authored by Punit Soni's avatar Punit Soni
Browse files

msm: camera: fix version comparison in csid driver



Recent change in csid driver ignored csid version V40, which is used for
8x26 targets. Fix this issue in msm_csid.c

Change-Id: Icf70a0704fee27d38afa4208cf4e59cddc10d66c
Signed-off-by: default avatarPunit Soni <punits@codeaurora.org>
parent 4bb26321
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@
#define CSID_VERSION_V22                      0x02001000
#define CSID_VERSION_V30                      0x30000000
#define CSID_VERSION_V31                      0x30010000
#define CSID_VERSION_V40                      0x40000000
#define MSM_CSID_DRV_NAME                    "msm_csid"

#define DBG_CSID 0
@@ -308,8 +309,9 @@ static int msm_csid_release(struct csid_device *csid_dev)
		msm_camera_config_vreg(&csid_dev->pdev->dev,
			csid_vreg_info, ARRAY_SIZE(csid_vreg_info),
			NULL, 0, &csid_dev->csi_vdd, 0);
	} else if (csid_dev->hw_version >= CSID_VERSION_V30 &&
	  csid_dev->hw_version < CSID_VERSION_V31) {
	} else if ((csid_dev->hw_version >= CSID_VERSION_V30 &&
		csid_dev->hw_version < CSID_VERSION_V31) ||
		csid_dev->hw_version == CSID_VERSION_V40) {
		msm_cam_clk_enable(&csid_dev->pdev->dev, csid_clk_info,
			csid_dev->csid_clk, ARRAY_SIZE(csid_clk_info), 0);
		msm_camera_enable_vreg(&csid_dev->pdev->dev,