Thread (3 messages) 3 messages, 2 authors, 2025-09-20

Re: [PATCH v2 00/10] media: Introduce video device state management

From: Andy Shevchenko <hidden>
Date: 2025-09-20 10:49:35
Also in: imx, linux-arm-msm, linux-input, linux-media, linux-mediatek, linux-renesas-soc, linux-rockchip, linux-samsung-soc, linux-staging, linux-sunxi, linux-tegra, linux-usb, lkml, openbmc

On Fri, Sep 19, 2025 at 12:57 PM Jai Luthra [off-list ref] wrote:
Hi,

This patch series introduces state management for video devices.

Currently, V4L2 subdevices have a well-established state management
system [1] that allows the framework to store the subdevice state
at a central location.

Video devices however lack this, leading to inconsistent state handling
across drivers and making it difficult to implement features like
hardware multiplexing in complex media pipelines [2].

The series is composed of three parts:

- Core Infrastructure (PATCH 1-4)
        Introduces the basic state structure, try state support,
        initialization callbacks, and driver helpers
- Framework Integration (PATCH 5-7)
        Integrates state passing through the ioctl wrappers and driver
        implementations
- Driver Examples (PATCH 8-10)
        Use the state to store formats in TI J721E CSI2RX and Rockchip
        RKISP1 drivers

This should also provide a foundation for drivers to extend or subclass
the state structure with device-specific variables in future.

I have tested capture and format negotiation with the converted drivers
on SK AM62A (j721e-csi2rx) and Debix Model A (rkisp1).

[1]: https://lore.kernel.org/linux-media/20210610145606.3468235-1-tomi.valkeinen@ideasonboard.com/ (local)
[2]: https://lore.kernel.org/linux-media/20250724-multicontext-mainline-2025-v2-0-c9b316773486@ideasonboard.com/ (local)
When you add a Cc list., do it after the '---' (three minus signs)
line, otherwise that huge unneeded noise will become part of the
commit message.


-- 
With Best Regards,
Andy Shevchenko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help