mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
msm: camera: csiphy: Continue in case of unavailibility of CSIPHY hw
During the common control register programming across csiphy hws, there can be chance that number of CSIPHY hw supported is differnt than max csiphy hw supported among various targets. This change make sure to continue to next available hardware index in case of unavailibility of csiphy hw soc index. CRs-Fixed: 2948896 Change-Id: I1572974226701dcd3aadeb3d9cf95924e05520a9 Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
This commit is contained in:
parent
e40030134a
commit
b77fca2cb0
1 changed files with 6 additions and 0 deletions
|
|
@ -153,6 +153,12 @@ static void cam_csiphy_prgm_cmn_data(
|
|||
csiphybase = g_phy_data[csiphy_idx].base_address;
|
||||
is_3phase = g_phy_data[csiphy_idx].is_3phase;
|
||||
|
||||
if (!csiphybase) {
|
||||
CAM_DBG(CAM_CSIPHY, "CSIPHY: %d is not available in platform",
|
||||
csiphy_idx);
|
||||
continue;
|
||||
}
|
||||
|
||||
for (i = 0; i < size; i++) {
|
||||
csiphy_common_reg =
|
||||
&csiphy_dev->ctrl_reg->csiphy_common_reg[i];
|
||||
|
|
|
|||
Loading…
Reference in a new issue