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

Commit 07017009 authored by Kiran Raparthy's avatar Kiran Raparthy
Browse files

Revert "msm: camera: Fuse based secure camera"



This reverts commit 75fd9480.

Change-Id: Ie7e77260269cc556dcf4f8fc9988e1ff74f639b2
Signed-off-by: default avatarKiran Raparthy <kraparth@codeaurora.org>
parent a15d25be
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@

static int csiphy_dump;
module_param(csiphy_dump, int, 0644);
int *fuse;

static int cam_csiphy_notify_secure_mode(struct csiphy_device *csiphy_dev,
	bool protect, int32_t offset)
@@ -915,17 +914,6 @@ int32_t cam_csiphy_core_cfg(void *phy_dev,
		}

		if (csiphy_dev->csiphy_info.secure_mode[offset] == 1) {
			if (!fuse) {
				fuse = ioremap(0x00780210, 4);
				CAM_ERR(CAM_CSIPHY, "sec_cam: fuse val %X", *fuse);
			}
			if (!(*fuse & BIT(18))) {
				CAM_ERR(CAM_CSIPHY, "sec_cam: camera fuse bit not set", *fuse);
				rc = -1;
				cam_cpas_stop(csiphy_dev->cpas_handle);
				goto release_mutex;
			}
			CAM_ERR(CAM_CSIPHY, "sec_cam: camera fuse bit set", *fuse);
			rc = cam_csiphy_notify_secure_mode(
				csiphy_dev,
				CAM_SECURE_MODE_SECURE, offset);