Hi, This is v5 of the subdev active state series. The v4 can be found from: https://lore.kernel.org/all/20220216130049.508664-1-tomi.valkeinen@xxxxxxxxxxxxxxxx/ Changes since v4: - Move v4l2_subdev_call_state_active() to a new header file, include/media/v4l2-subdev-legacy.h - Rename v4l2_subdev_lock_active_state to v4l2_subdev_lock_and_get_active_state - Inline v4l2_subdev_lock_and_get_active_state, v4l2_subdev_lock_state, v4l2_subdev_unlock_state - Minor doc updates - Drop v4l2_subdev_lock_and_return_state patch 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_call_state_active() media: Documentation: add documentation about subdev state .../driver-api/media/v4l2-subdev.rst | 75 ++++++++ drivers/media/platform/rcar-vin/rcar-v4l2.c | 9 +- drivers/media/platform/vsp1/vsp1_entity.c | 10 +- drivers/media/v4l2-core/v4l2-subdev.c | 137 ++++++++++++--- drivers/staging/media/tegra-video/vi.c | 10 +- include/media/v4l2-subdev-legacy.h | 42 +++++ include/media/v4l2-subdev.h | 163 +++++++++++++++++- 7 files changed, 415 insertions(+), 31 deletions(-) create mode 100644 include/media/v4l2-subdev-legacy.h -- 2.25.1