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

Commit 10f52b7f authored by Ayush Kumar's avatar Ayush Kumar
Browse files

msm: camera: cpas: Enable camnoc interrupts



Enable camnoc interrupts to get notifications for
UBWC encoder and decoder errors.

Change-Id: I922acfe873fe66188a21cca8ca74ea26ecace8b9
Signed-off-by: default avatarAyush Kumar <ayushkr@codeaurora.org>
parent e71c354c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -331,6 +331,9 @@ static int cam_cpastop_reset_irq(struct cam_hw_info *cpas_hw)
{
	int i;

	if (camnoc_info->irq_sbm->sbm_enable.enable == false)
		return 0;

	cam_cpas_util_reg_update(cpas_hw, CAM_CPAS_REG_CAMNOC,
		&camnoc_info->irq_sbm->sbm_clear);
	for (i = 0; i < camnoc_info->irq_err_size; i++) {
@@ -512,6 +515,7 @@ static int cam_cpastop_poweron(struct cam_hw_info *cpas_hw)
{
	int i;

	cam_cpastop_reset_irq(cpas_hw);
	for (i = 0; i < camnoc_info->specific_size; i++) {
		if (camnoc_info->specific[i].enable) {
			cam_cpas_util_reg_update(cpas_hw, CAM_CPAS_REG_CAMNOC,