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

Commit 5a65ae3b authored by Venkat Chinta's avatar Venkat Chinta Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: ife: Reset hw clk rate in init hw



Since down voting clock rates has been delayed in stop,
the hw clk rate value is not updated in software. And if
in a new start the required clock rate is the same as this
stale value, new requested clock rates are not voted.

Change-Id: I13c5a9ab2fd7cab93a16f2a3386ce7d6cf680681
Signed-off-by: default avatarVenkat Chinta <vchinta@codeaurora.org>
parent 8227bcc5
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -279,6 +279,13 @@ int cam_vfe_init_hw(void *hw_priv, void *init_hw_args, uint32_t arg_size)
		goto deinint_vfe_res;
	}

	rc = core_info->vfe_top->hw_ops.init(core_info->vfe_top->top_priv,
		NULL, 0);
	if (rc) {
		CAM_ERR(CAM_ISP, "Top HW init Failed rc=%d", rc);
		goto deinint_vfe_res;
	}

	vfe_hw->hw_state = CAM_HW_STATE_POWER_UP;
	return rc;

+5 −1
Original line number Diff line number Diff line
@@ -388,7 +388,11 @@ int cam_vfe_top_get_hw_caps(void *device_priv,
int cam_vfe_top_init_hw(void *device_priv,
	void *init_hw_args, uint32_t arg_size)
{
	return -EPERM;
	struct cam_vfe_top_ver2_priv   *top_priv = device_priv;

	top_priv->hw_clk_rate = 0;

	return 0;
}

int cam_vfe_top_reset(void *device_priv,