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

Commit 3760c869 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: csiphy: Reset phy config count in phy release"

parents d4b81dd8 b9a482ba
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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");