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

Commit 55f035b2 authored by Venu Raidu's avatar Venu Raidu Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarVenu Raidu <vraidu@codeaurora.org>
Signed-off-by: default avatarSumalatha Malothu <smalot@codeaurora.org>
parent 3541909b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1571,6 +1571,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);