Эх сурвалжийг харах

msm: camera: isp: Change return values of IRQ Handlers

In IRQ controller, non-zero return value of top half is handled
as an error. This caused non-scheduling of bottom half.
This commit changes the return values of top half handlers in
CSID drivers.

Change-Id: If7d71d11077ebefad3511a2c7b088f17f740ea27
CRs-Fixed: 2830502
Signed-off-by: Gaurav Jindal <[email protected]>
Gaurav Jindal 4 жил өмнө
parent
commit
9a474caabc

+ 9 - 9
drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver2.c

@@ -453,7 +453,7 @@ static int cam_ife_csid_ver2_path_top_half(
 			CAM_INFO(CAM_ISP, "CSID:%d status_%d: 0x%X",
 				csid_hw->hw_intf->hw_idx, i,
 				th_payload->evt_status_arr[i]);
-		return IRQ_HANDLED;
+		return rc;
 	}
 
 	for (i = 0; i < th_payload->num_registers; i++)
@@ -461,7 +461,7 @@ static int cam_ife_csid_ver2_path_top_half(
 
 	th_payload->evt_payload_priv = evt_payload;
 
-	return IRQ_HANDLED;
+	return 0;
 }
 
 static int cam_ife_csid_ver2_rx_err_top_half(
@@ -489,7 +489,7 @@ static int cam_ife_csid_ver2_rx_err_top_half(
 			CAM_INFO(CAM_ISP, "CSID:%d status_%d: 0x%X",
 				csid_hw->hw_intf->hw_idx, i,
 				th_payload->evt_status_arr[i]);
-		return IRQ_HANDLED;
+		return rc;
 	}
 
 	evt_payload->irq_reg_val[CAM_IFE_CSID_IRQ_REG_RX] =
@@ -497,7 +497,7 @@ static int cam_ife_csid_ver2_rx_err_top_half(
 
 	th_payload->evt_payload_priv = evt_payload;
 
-	return IRQ_HANDLED;
+	return 0;
 }
 
 static int cam_ife_csid_ver2_handle_rx_debug_event(
@@ -614,7 +614,7 @@ static int cam_ife_csid_ver2_rx_top_half(
 		irq_status >>= 1;
 	}
 
-	return IRQ_HANDLED;
+	return 0;
 }
 
 static int cam_ife_csid_ver2_disable_csi2(
@@ -777,7 +777,7 @@ static int cam_ife_csid_ver2_rx_err_bottom_half(
 			&csid_hw->rx_free_payload_list,
 			&csid_hw->rx_payload_lock);
 
-	return IRQ_HANDLED;
+	return 0;
 }
 
 static int cam_ife_csid_ver2_parse_path_irq_status(
@@ -904,7 +904,7 @@ static int cam_ife_csid_ver2_ipp_bottom_half(
 			&csid_hw->path_free_payload_list,
 			&csid_hw->path_payload_lock);
 
-	return IRQ_HANDLED;
+	return 0;
 }
 
 static int cam_ife_csid_ver2_ppp_bottom_half(
@@ -941,7 +941,7 @@ static int cam_ife_csid_ver2_ppp_bottom_half(
 			&csid_hw->path_free_payload_list,
 			&csid_hw->path_payload_lock);
 
-	return IRQ_HANDLED;
+	return 0;
 }
 
 static int cam_ife_csid_ver2_rdi_bottom_half(
@@ -1041,7 +1041,7 @@ static int cam_ife_csid_ver2_rdi_bottom_half(
 			&csid_hw->path_free_payload_list,
 			&csid_hw->path_payload_lock);
 
-	return IRQ_HANDLED;
+	return 0;
 }
 
 int cam_ife_csid_ver2_get_hw_caps(void *hw_priv,