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

Commit 6e8d700c authored by Ayush Kumar's avatar Ayush Kumar
Browse files

msm: camera: csid: Clear CSID top irq mask before reset



Clear top irq mask before strobing hardware reset.
This will make sure no interrupts during the hardware
reset cycle.

Change-Id: I85c65b67fca8500329cc6be2bea8efaffd8cd097
Signed-off-by: default avatarAyush Kumar <ayushkr@codeaurora.org>
parent fd0fa41e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -2833,6 +2833,9 @@ static int cam_ife_csid_reset_retain_sw_reg(
	cam_io_w_mb(1, soc_info->reg_map[0].mem_base +
		csid_reg->cmn_reg->csid_irq_cmd_addr);

	cam_io_w_mb(0, soc_info->reg_map[0].mem_base +
		csid_reg->cmn_reg->csid_top_irq_mask_addr);

	cam_io_w_mb(csid_reg->cmn_reg->csid_rst_stb,
		soc_info->reg_map[0].mem_base +
		csid_reg->cmn_reg->csid_rst_strobes_addr);