msm: camera_v2: CPP AXI reset at close

Enable AXI/ABH clocks, inorder to perform CPP AXI
reset successfully.

Change-Id: I68d16825243d63f612709ce414bdaaa19af45bbe
Signed-off-by: Venu Raidu <vraidu@codeaurora.org>
Signed-off-by: Sumalatha Malothu <smalot@codeaurora.org>
Signed-off-by: Shadul Shaikh <sshadu@codeaurora.org>
This commit is contained in:
Venu Raidu 2019-05-16 19:20:37 +05:30 committed by Shadul Shaikh
parent 01c8117a9d
commit e4250ce4ec

View file

@ -1581,6 +1581,12 @@ static int cpp_close_node(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh)
pr_debug("DEBUG_R1: 0x%x\n",
msm_camera_io_r(cpp_dev->cpp_hw_base + 0x8C));
/* Update bandwidth usage to enable AXI/ABH clock,
* which will help to reset CPP AXI.Bandwidth will be
* made zero at cpp_release_hardware.
*/
msm_cpp_update_bandwidth(cpp_dev, 0x1000, 0x1000);
/* mask IRQ status */
msm_camera_io_w(0xB, cpp_dev->cpp_hw_base + 0xC);