Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jiaqi Shi" <shijiaqi_develop@163.com>, imx@lists.linux.dev
Cc: Frank.Li@kernel.org, media-ci@linuxtv.org
Subject: Re: [PATCH v7 2/2] media: imx: remove frame interval monitor
Date: Tue, 01 Dec 2026 15:12:10 +0000	[thread overview]
Message-ID: <sashiko-outbox-243559@kernel.org> (raw)
In-Reply-To: <20261201145939.840441-3-shijiaqi_develop@163.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] media: imx: leftover ctrl_hdlr and event flag in
  csi_link_setup()
--

commit 6f716e2afb6327485ec2c915b81e9c49fba76201
Author: Jiaqi Shi <shijiaqi_develop@163.com>

media: imx: remove frame interval monitor

This commit removes the i.MX-private frame interval monitor (FIM), its
controls and event definitions, its CSI and capture integrations, and its
documentation and TODO entry.

> diff --git a/drivers/staging/media/imx/imx-media-csi.c b/drivers/staging/media/imx/imx-media-csi.c
> index c30fd5c37b536..8b8451ae2cf5e 100644
> --- a/drivers/staging/media/imx/imx-media-csi.c
> +++ b/drivers/staging/media/imx/imx-media-csi.c
[ ... ]
> @@ -1115,12 +1096,6 @@ static int csi_link_setup(struct media_entity *entity,
>  			goto out;
>  		}
>  
> -		if (priv->fim) {
> -			ret = imx_media_fim_add_controls(priv->fim);
> -			if (ret)
> -				goto out;
> -		}
> -
>  		priv->dest = IPU_CSI_DEST_IDMAC;
>  	} else {
>  		if (!is_media_entity_v4l2_subdev(remote->entity)) {
[ ... ]
> @@ -1877,11 +1829,6 @@ static const struct media_entity_operations csi_entity_ops = {
>  	.get_fwnode_pad = csi_get_fwnode_pad,
>  };
>  
> -static const struct v4l2_subdev_core_ops csi_core_ops = {
> -	.subscribe_event = csi_subscribe_event,
> -	.unsubscribe_event = v4l2_event_subdev_unsubscribe,
> -};
> -
>  static const struct v4l2_subdev_video_ops csi_video_ops = {
>  	.s_stream = csi_s_stream,
>  };
> @@ -1900,7 +1847,6 @@ static const struct v4l2_subdev_pad_ops csi_pad_ops = {
>  };
>  
>  static const struct v4l2_subdev_ops csi_subdev_ops = {
> -	.core = &csi_core_ops,
>  	.video = &csi_video_ops,
>  	.pad = &csi_pad_ops,
>  };

[Severity: Low]
With FIM and csi_core_ops removed, the CSI subdev has no remaining
controls or events, so should priv->ctrl_hdlr and V4L2_SUBDEV_FL_HAS_EVENTS
be removed as well?

imx_csi_probe() still sets V4L2_SUBDEV_FL_HAS_EVENTS on priv->sd.flags and
attaches priv->ctrl_hdlr to priv->sd.ctrl_handler, and disabling a source
pad link in csi_link_setup() still tears down and re-initializes the empty
handler:

drivers/staging/media/imx/imx-media-csi.c:csi_link_setup() {
    ...
	if (flags & MEDIA_LNK_FL_ENABLED) {
		if (priv->sink) {
			ret = -EBUSY;
			goto out;
		}
	} else {
		v4l2_ctrl_handler_free(&priv->ctrl_hdlr);
		v4l2_ctrl_handler_init(&priv->ctrl_hdlr, 0);
		priv->sink = NULL;
    ...
}

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261201145939.840441-1-shijiaqi_develop@163.com?part=2

      reply	other threads:[~2026-12-01 15:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 14:59 [PATCH v7 0/2] media: imx: staging cleanup and remove frame interval monitor Jiaqi Shi
2026-12-01 14:59 ` [PATCH v7 1/2] media: imx: remove legacy video node control and format handling Jiaqi Shi
2026-12-01 14:59 ` [PATCH v7 2/2] media: imx: remove frame interval monitor Jiaqi Shi
2026-12-01 15:12   ` sashiko-bot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-243559@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=imx@lists.linux.dev \
    --cc=media-ci@linuxtv.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=shijiaqi_develop@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox