From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: David Dull <monderasdor@gmail.com>
Cc: jai.luthra@ideasonboard.com, linux-media@vger.kernel.org
Subject: Re: [PATCH v2 06/10] media: Replace void * with video_device_state * in all driver ioctl implementations
Date: Sun, 8 Mar 2026 11:37:14 +0100 [thread overview]
Message-ID: <20260308103714.GA430878@killaraus.ideasonboard.com> (raw)
In-Reply-To: <20260307194952.1866-1-monderasdor@gmail.com>
On Sat, Mar 07, 2026 at 09:49:52PM +0200, David Dull wrote:
> Hi Jai,
>
> This patch is too large to be reasonably reviewable in its current form.
This review is too generated by LLMs to be actionable in its current
form.
> The stated change is conceptually simple: replace the opaque `void *priv`
> argument with `struct video_device_state *state` in V4L2 ioctl
> implementations. However, this single patch touches hundreds of files
> across drivers, helpers, framework code, staging code, and public
> headers. That makes it extremely difficult to validate correctness,
> spot exceptions, and reason about regressions from mailing list review
> alone.
>
> A few issues stand out:
>
> 1. Patch granularity
>
> This should not be one monolithic patch. At minimum it should be
> split into:
>
> - core/framework changes
> - helper conversions
> - driver conversions by subsystem or directory class
> - staging/test-driver conversions separately
>
> Right now the size alone makes meaningful review and bisection much
> worse than it needs to be.
>
> 2. Mechanical conversion claim vs. manual exceptions
>
> The changelog says most changes were automated with Coccinelle,
> while function signature updates in headers and edge cases were
> handled manually. That is exactly why this needs splitting.
> Mechanical treewide conversions are one thing; manual edge-case
> handling is where subtle semantic mistakes tend to hide.
>
> 3. API conversion proof is missing
>
> If this is primarily a scripted transformation, the review should
> center on the semantic patch and on proving there are no remaining
> mismatches.
>
> Please include:
>
> - the Coccinelle script as a separate patch or in the cover letter
> - a summary of what could not be converted automatically
> - a treewide grep result showing there are no remaining ioctl
> prototypes using `void *priv` where
> `struct video_device_state *state` is now required
>
> 4. Conversion consistency
>
> Several call sites now rename the parameter to `state` but continue
> to use it only as a positional placeholder, which is fine
> mechanically, but the patch should avoid mixing semantic conversion
> with opportunistic cleanup. Formatting-only churn and spacing
> adjustments should be kept to the minimum necessary for the
> signature change.
>
> 5. Risk concentration
>
> This patch touches both framework headers and many driver
> implementations in the same changeset. That amplifies the blast
> radius of any mistake and makes it harder to tell whether a
> reported regression belongs to the API change itself or to one of
> the driver-side edits.
>
> 6. Reviewability for maintainers
>
> The CC list spans a large number of maintainers and mailing lists.
> That is appropriate for notification, but not a substitute for
> reviewable patch structure. Individual maintainers should not have
> to sift through a large treewide refactor to find the parts that
> affect their drivers.
>
> Please respin this as a structured series with the mechanical
> transformation isolated from the framework changes and with a clear
> accounting of manual fixups and exceptions.
>
> As it stands, I do not think this patch is reviewable in one piece.
>
> Acked By : David Dull
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2026-03-08 10:37 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-19 9:55 [PATCH v2 00/10] media: Introduce video device state management Jai Luthra
2025-09-19 9:55 ` [PATCH v2 01/10] media: v4l2-core: Introduce state management for video devices Jai Luthra
2025-09-22 7:44 ` Hans Verkuil
2025-09-22 8:00 ` Hans Verkuil
2025-09-29 15:30 ` Jai Luthra
2025-09-29 20:02 ` Michael Riesch
2025-09-30 7:26 ` Jacopo Mondi
2025-09-30 7:15 ` Jacopo Mondi
2025-09-30 7:24 ` Hans Verkuil
2025-09-24 7:06 ` Hans Verkuil
2025-09-24 10:15 ` Mauro Carvalho Chehab
2025-09-29 16:50 ` Jai Luthra
2025-09-19 9:55 ` [PATCH v2 02/10] media: v4l2-dev: Add support for try state Jai Luthra
2025-09-22 7:52 ` Hans Verkuil
2025-09-22 7:58 ` Hans Verkuil
2025-09-29 16:15 ` Jai Luthra
2025-09-30 7:30 ` Hans Verkuil
2025-09-30 9:35 ` Jacopo Mondi
2025-09-30 10:07 ` Hans Verkuil
2025-09-19 9:55 ` [PATCH v2 03/10] media: v4l2-dev: Add callback for initializing video device state Jai Luthra
2025-09-19 9:55 ` [PATCH v2 04/10] media: v4l2-dev: Add helpers to get current format from the state Jai Luthra
2025-09-22 8:06 ` Hans Verkuil
2025-09-29 16:16 ` Jai Luthra
2025-09-19 9:55 ` [PATCH v2 05/10] media: v4l2-ioctl: Add video_device_state argument to v4l2 ioctl wrappers Jai Luthra
2025-09-22 8:09 ` Hans Verkuil
2025-09-22 8:10 ` Hans Verkuil
2025-09-19 9:55 ` [PATCH v2 06/10] media: Replace void * with video_device_state * in all driver ioctl implementations Jai Luthra
2026-03-07 19:49 ` David Dull
2026-03-08 10:37 ` Laurent Pinchart [this message]
2026-03-07 20:06 ` David Dull
2025-09-19 9:55 ` [PATCH v2 07/10] media: v4l2-ioctl: Pass device state for G/S/TRY_FMT ioctls Jai Luthra
2025-09-22 8:11 ` Hans Verkuil
2025-09-19 9:56 ` [PATCH v2 08/10] media: ti: j721e-csi2rx: Use video_device_state Jai Luthra
2025-09-22 8:16 ` Hans Verkuil
2025-09-29 16:21 ` Jai Luthra
2025-09-19 9:56 ` [PATCH v2 09/10] media: rkisp1: " Jai Luthra
2025-09-19 9:56 ` [PATCH v2 10/10] media: rkisp1: Calculate format information on demand Jai Luthra
2025-09-20 10:48 ` [PATCH v2 00/10] media: Introduce video device state management Andy Shevchenko
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=20260308103714.GA430878@killaraus.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=jai.luthra@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=monderasdor@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