Merge "msm: ais: Corrected sensor state in power up"
This commit is contained in:
commit
ee11b4113e
2 changed files with 7 additions and 2 deletions
|
@ -26,6 +26,7 @@
|
|||
#include <linux/msm-bus.h>
|
||||
#include "cam_soc_api.h"
|
||||
#include "msm_camera_diag_util.h"
|
||||
#include <linux/clk/msm-clock-generic.h>
|
||||
|
||||
struct msm_cam_bus_pscale_data {
|
||||
struct msm_bus_scale_pdata *pdata;
|
||||
|
@ -362,6 +363,7 @@ int msm_camera_clk_enable(struct device *dev,
|
|||
clk_info[i].clk_name);
|
||||
goto cam_clk_set_err;
|
||||
}
|
||||
clk_ptr[i]->flags |= CLKFLAG_NO_RATE_CACHE;
|
||||
rc = clk_set_rate(clk_ptr[i],
|
||||
clk_rate);
|
||||
if (rc < 0) {
|
||||
|
@ -383,6 +385,7 @@ int msm_camera_clk_enable(struct device *dev,
|
|||
goto cam_clk_set_err;
|
||||
}
|
||||
}
|
||||
clk_ptr[i]->flags |= CLKFLAG_NO_RATE_CACHE;
|
||||
rc = clk_set_rate(clk_ptr[i],
|
||||
clk_rate);
|
||||
if (rc < 0) {
|
||||
|
|
|
@ -842,7 +842,8 @@ static int msm_sensor_config32(struct msm_sensor_ctrl_t *s_ctrl,
|
|||
if (s_ctrl->is_csid_tg_mode)
|
||||
goto DONE;
|
||||
|
||||
if (s_ctrl->sensor_state != MSM_SENSOR_POWER_DOWN) {
|
||||
if ((s_ctrl->sensor_state != MSM_SENSOR_POWER_DOWN) &&
|
||||
(s_ctrl->sensor_state != MSM_SENSOR_CCI_DOWN)) {
|
||||
pr_err("%s:%d failed: invalid state %d\n", __func__,
|
||||
__LINE__, s_ctrl->sensor_state);
|
||||
rc = -EFAULT;
|
||||
|
@ -1403,7 +1404,8 @@ int msm_sensor_config(struct msm_sensor_ctrl_t *s_ctrl, void *argp)
|
|||
if (s_ctrl->is_csid_tg_mode)
|
||||
goto DONE;
|
||||
|
||||
if (s_ctrl->sensor_state != MSM_SENSOR_POWER_DOWN) {
|
||||
if ((s_ctrl->sensor_state != MSM_SENSOR_POWER_DOWN) &&
|
||||
(s_ctrl->sensor_state != MSM_SENSOR_CCI_DOWN)) {
|
||||
pr_err("%s:%d failed: invalid state %d\n", __func__,
|
||||
__LINE__, s_ctrl->sensor_state);
|
||||
rc = -EFAULT;
|
||||
|
|
Loading…
Add table
Reference in a new issue