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

Commit 49787d94 authored by Tony Lijo Jose's avatar Tony Lijo Jose
Browse files

msm: camera: csiphy: reset phy lane configs on shutdown



Need to reset the phy lane configurations to default value on phy
shutdown. If the old value is retained , phy lane configurations can go
bad in next session.

Change-Id: I506eda4997a2f47b5e4ce733c081cff6ec950d76
Signed-off-by: default avatarTony Lijo Jose <tjose@codeaurora.org>
parent 1d886afe
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -601,6 +601,11 @@ void cam_csiphy_shutdown(struct csiphy_device *csiphy_dev)
	csiphy_dev->acquire_count = 0;
	csiphy_dev->start_dev_count = 0;
	csiphy_dev->csiphy_state = CAM_CSIPHY_INIT;

	/* reset csiphy info */
	csiphy_dev->csiphy_info.lane_mask = 0;
	csiphy_dev->csiphy_info.lane_cnt = 0;
	csiphy_dev->csiphy_info.combo_mode = 0;
}

static int32_t cam_csiphy_external_cmd(struct csiphy_device *csiphy_dev,