Hi, These are the first 6 patches from the "[PATCH v10 00/38] v4l: subdev internal routing and streams" series. I'm posting these as a separate series, as the active state patches are a separate topic from the multiplexed streams. There are changes in these patches compared to the v10 series in the docs and comments. The only functional change is in the v4l2_subdev_lock_and_return_state() function, where we now: if (!state) dev_notice_once(sd->dev, "source subdev should be ported to new state management\n"); I don't particularly like the text there, so if anyone has better suggestions... Tomi Tomi Valkeinen (6): media: subdev: rename subdev-state alloc & free media: subdev: add active state to struct v4l2_subdev media: subdev: pass also the active state to subdevs from ioctls media: subdev: add subdev state locking media: subdev: Add v4l2_subdev_lock_and_return_state() media: Documentation: add documentation about subdev state .../driver-api/media/v4l2-subdev.rst | 58 +++++++ drivers/media/platform/rcar-vin/rcar-v4l2.c | 9 +- drivers/media/platform/vsp1/vsp1_entity.c | 10 +- drivers/media/v4l2-core/v4l2-subdev.c | 125 +++++++++++++-- drivers/staging/media/tegra-video/vi.c | 10 +- include/media/v4l2-subdev.h | 149 +++++++++++++++++- 6 files changed, 334 insertions(+), 27 deletions(-) -- 2.25.1