Re: [PATCH v1 08/10] media: platform: mediatek: add isp_7x state ctrl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Shu-hsiang:

On Wed, 2024-10-09 at 19:15 +0800, Shu-hsiang Yang wrote:
> Introduces state management and debugging mechanisms for the MediaTek
> ISP7.x camsys platform. State management establishes control over ISP
> operations and events, defining distinct states for request handling,
> sensor control, and frame synchronization, ensuring event processing.
> The debugging mechanism ensures stable operation and timely data
> collection during anomalies.
> 
> Signed-off-by: Shu-hsiang Yang <Shu-hsiang.Yang@xxxxxxxxxxxx>
> ---

[snip]

> +int mtk_camsys_isr_event(struct mtk_cam_device *cam,
> +			 enum MTK_CAMSYS_ENGINE_TYPE engine_type,
> +			 unsigned int engine_id,
> +			 struct mtk_camsys_irq_info *irq_info)
> +{
> +	int ret = 0;
> +
> +	switch (engine_type) {
> +	case CAMSYS_ENGINE_RAW:
> +		ret = mtk_camsys_event_handle_raw(cam, engine_id, irq_info);
> +		break;
> +	case CAMSYS_ENGINE_SENINF:
> +		if (irq_info->irq_type & (1 << CAMSYS_IRQ_FRAME_DROP))

CAMSYS_IRQ_FRAME_DROP is never set, so drop it.

Regards,
CK

> +			dev_info(cam->dev,
> +				 "MTK_CAMSYS_ENGINE_SENINF_TAG engine:%d type:0x%x\n",
> +				 engine_id, irq_info->irq_type);
> +		break;
> +	default:
> +		break;
> +	}
> +
> +	return ret;
> +}
> +




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux