Linux kernel staging patches
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil+cisco@kernel.org>
To: Jiaqi Shi <shijiaqi_develop@163.com>,
	linux-media@vger.kernel.org, imx@lists.linux.dev,
	linux-staging@lists.linux.dev
Cc: slongerbeam@gmail.com, p.zabel@pengutronix.de,
	mchehab@kernel.org, gregkh@linuxfoundation.org, Frank.Li@nxp.com,
	kernel@pengutronix.de, festevam@gmail.com
Subject: Re: [PATCH v6 0/2] media: imx: staging cleanup and FIM export to v4l2-core
Date: Wed, 25 Nov 2026 12:00:52 +0100	[thread overview]
Message-ID: <479b6df1-3cd7-4609-b197-86bd937b1fdd@kernel.org> (raw)
In-Reply-To: <20261122114205.494704-1-shijiaqi_develop@163.com>

On 22/11/2026 12:42, Jiaqi Shi wrote:
> Changes in v6:
> - Apply the IC route format selection consistently to pixel-format,
>   frame-size, and frame-interval enumeration as well as TRY/S_FMT.
> - Keep the remaining STD and frame-interval legacy ioctls unchanged.
> 
> This series continues the i.MX staging media driver cleanup by removing
> legacy control inheritance and source-dependent format handling from
> capture video nodes, and exports the generic Frame Interval Monitor to
> v4l2-core while retaining the i.MX input capture controls locally.

I would keep the FIM in the driver itself. I didn't even know it existed
in the imx driver, and I am not convinced it is something we want in the core.

Frankly, it looks dubious in the imx driver as well. There doesn't appear to
be proper documentation of these control either.

I would be more inclined to remove it unless someone can explain the use-case
and if that use-case is real or hypothetical.

In any case, don't move it to the core.

Regards,

	Hans

> 
> The new FIM files are already covered by the existing MEDIA INPUT
> INFRASTRUCTURE entries for drivers/media/ and include/media/.
> 
> Validation:
> - allmodconfig build and sparse
> - scripts/kernel-doc -none on the FIM header and implementation
> - local FIM KUnit tests, not included in this series: 13/13 passed
> - local white-box i.MX capture format tests, not included: 21/21 passed
> - QEMU vivid: v4l2-compliance 125/125, 30-frame streaming passed
> - QEMU vim2m: v4l2-compliance 49/49, 10-frame streaming passed
> - i.MX register-level and hardware DMA paths remain untested
> 
> Jiaqi Shi (2):
>   media: imx: remove legacy video node control and format handling
>   media: v4l2-core: add frame interval monitor helper
> 
>  Documentation/admin-guide/media/imx.rst       |  20 +-
>  drivers/media/v4l2-core/Kconfig               |   4 +
>  drivers/media/v4l2-core/Makefile              |   1 +
>  drivers/media/v4l2-core/v4l2-fim.c            | 385 +++++++++++++++++
>  drivers/staging/media/imx/Kconfig             |   1 +
>  drivers/staging/media/imx/TODO                |  13 -
>  drivers/staging/media/imx/imx-ic-prpencvf.c   |  10 +-
>  drivers/staging/media/imx/imx-media-capture.c | 401 +++++++-----------
>  drivers/staging/media/imx/imx-media-csi.c     |  10 +-
>  .../staging/media/imx/imx-media-dev-common.c  | 113 +----
>  drivers/staging/media/imx/imx-media-fim.c     | 361 +++-------------
>  drivers/staging/media/imx/imx-media-utils.c   |   9 +-
>  drivers/staging/media/imx/imx-media.h         |  11 +-
>  include/media/v4l2-fim.h                      |  57 +++
>  14 files changed, 680 insertions(+), 716 deletions(-)
>  create mode 100644 drivers/media/v4l2-core/v4l2-fim.c
>  delete mode 100644 drivers/staging/media/imx/TODO
>  create mode 100644 include/media/v4l2-fim.h
> 


      parent reply	other threads:[~2026-11-25 11:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-22 11:42 [PATCH v6 0/2] media: imx: staging cleanup and FIM export to v4l2-core Jiaqi Shi
2026-11-22 11:42 ` [PATCH v6 1/2] media: imx: remove legacy video node control and format handling Jiaqi Shi
2026-11-22 11:42 ` [PATCH v6 2/2] media: v4l2-core: add frame interval monitor helper Jiaqi Shi
2026-11-24  5:37 ` [PATCH v6 0/2] media: imx: staging cleanup and FIM export to v4l2-core Dan Carpenter
2026-11-25 11:00 ` Hans Verkuil [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=479b6df1-3cd7-4609-b197-86bd937b1fdd@kernel.org \
    --to=hverkuil+cisco@kernel.org \
    --cc=Frank.Li@nxp.com \
    --cc=festevam@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=imx@lists.linux.dev \
    --cc=kernel@pengutronix.de \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=mchehab@kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=shijiaqi_develop@163.com \
    --cc=slongerbeam@gmail.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