Skip to content

Commit

Permalink
Merge "msm: camera: csiphy: Reset phy config count in phy release"
Browse files Browse the repository at this point in the history
  • Loading branch information
qctecmdr authored and Gerrit - the friendly Code Review server committed Sep 4, 2020
2 parents d4b81dd + b9a482b commit 3760c86
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,11 @@ int32_t cam_csiphy_core_cfg(void *phy_dev,
csiphy_dev->config_count--;
csiphy_dev->acquire_count--;

if (csiphy_dev->acquire_count == 0)
if (csiphy_dev->acquire_count == 0) {
csiphy_dev->csiphy_state = CAM_CSIPHY_INIT;
/* reset config count */
csiphy_dev->config_count = 0;
}

if (csiphy_dev->config_count == 0) {
CAM_DBG(CAM_CSIPHY, "reset csiphy_info");
Expand Down

0 comments on commit 3760c86

Please sign in to comment.