From b2dcdb6fa182a46b88974ab2f18c69608a2483e6 Mon Sep 17 00:00:00 2001 From: Jigar Agrawal Date: Mon, 14 Dec 2020 14:36:30 -0800 Subject: [PATCH] msm: camera: csiphy: Update the csiphy logging Update the csiphy logging for better debugging purpose. CRs-Fixed: 2839060 Change-Id: I8af110ae895ee09cdf9404d0e6d6165188a6db55 Signed-off-by: Jigar Agrawal --- .../cam_csiphy/cam_csiphy_core.c | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c b/drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c index ab3630b261..187dbc64b3 100644 --- a/drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c +++ b/drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c @@ -1238,12 +1238,6 @@ int32_t cam_csiphy_core_cfg(void *phy_dev, goto release_mutex; } - CAM_INFO(CAM_CSIPHY, - "STOP_DEV: CSIPHY_IDX: %d, Device_slot: %d, Datarate: %llu, Settletime: %llu", - csiphy_dev->soc_info.index, offset, - csiphy_dev->csiphy_info[offset].data_rate, - csiphy_dev->csiphy_info[offset].settle_time); - if (--csiphy_dev->start_dev_count) { CAM_DBG(CAM_CSIPHY, "Stop Dev ref Cnt: %d", csiphy_dev->start_dev_count); @@ -1290,6 +1284,12 @@ int32_t cam_csiphy_core_cfg(void *phy_dev, CAM_DBG(CAM_CSIPHY, "All PHY devices stopped"); csiphy_dev->csiphy_state = CAM_CSIPHY_ACQUIRE; + + CAM_INFO(CAM_CSIPHY, + "CAM_STOP_PHYDEV: CSIPHY_IDX: %d, Device_slot: %d, Datarate: %llu, Settletime: %llu", + csiphy_dev->soc_info.index, offset, + csiphy_dev->csiphy_info[offset].data_rate, + csiphy_dev->csiphy_info[offset].settle_time); } break; case CAM_RELEASE_DEV: { @@ -1398,13 +1398,6 @@ int32_t cam_csiphy_core_cfg(void *phy_dev, goto release_mutex; } - CAM_INFO(CAM_CSIPHY, - "CAM_START_PHYDEV: CSIPHY_IDX: %d, Device_slot: %d, cp_mode: %d, Datarate: %llu, Settletime: %llu", - csiphy_dev->soc_info.index, offset, - csiphy_dev->csiphy_info[offset].secure_mode, - csiphy_dev->csiphy_info[offset].data_rate, - csiphy_dev->csiphy_info[offset].settle_time); - if (csiphy_dev->start_dev_count) { clk_vote_level = csiphy_dev->ctrl_reg->getclockvoting( @@ -1535,6 +1528,13 @@ int32_t cam_csiphy_core_cfg(void *phy_dev, CAM_DBG(CAM_CSIPHY, "START DEV CNT: %d", csiphy_dev->start_dev_count); csiphy_dev->csiphy_state = CAM_CSIPHY_START; + + CAM_INFO(CAM_CSIPHY, + "CAM_START_PHYDEV: CSIPHY_IDX: %d, Device_slot: %d, cp_mode: %d, Datarate: %llu, Settletime: %llu", + csiphy_dev->soc_info.index, offset, + csiphy_dev->csiphy_info[offset].secure_mode, + csiphy_dev->csiphy_info[offset].data_rate, + csiphy_dev->csiphy_info[offset].settle_time); } break; case CAM_CONFIG_DEV_EXTERNAL: {