From a677b40a4ab3b95a8cb48d8e44927d4ce517924d Mon Sep 17 00:00:00 2001 From: Tony Lijo Jose Date: Fri, 14 Aug 2020 16:47:43 +0530 Subject: [PATCH] msm: camera: csiphy: Protect phy lanes for holi target Holi target uses 8 bit per phy register format for secure camera usecases. This change takes care of the secure phy bit mask formation specific to holi target. CRs-Fixed: 2757195 Change-Id: Ibe33b7619b484fd6e64d958ce01cba8fb0e72d3b Signed-off-by: Tony Lijo Jose --- drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 d9cd5f647f25..4230a12fc0c7 100644 --- a/drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c +++ b/drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c @@ -111,7 +111,8 @@ static int32_t cam_csiphy_update_secure_info( lane_assign >>= 4; } - if (csiphy_dev->hw_version == CSIPHY_VERSION_V201) { + if ((csiphy_dev->hw_version == CSIPHY_VERSION_V201) || + (csiphy_dev->hw_version == CSIPHY_VERSION_V125)) { phy_mask_len = CAM_CSIPHY_MAX_DPHY_LANES + CAM_CSIPHY_MAX_CPHY_LANES + 1; } else if (csiphy_dev->hw_version == CSIPHY_VERSION_V121) {