Skip to content

V4L2 sub-device active state helper, CCS fixes

Sakari Ailus linux-media oe-kbuild-all 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 6 repliesIn review
  2. v14 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- There were other drivers using __v4l2_subdev_state_alloc(). Ouch. Change those users as well. Note that this function should not be used in drivers, hence API niceness is not a high priority.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4media: v4l: subdev: Set sub-device active state earlierdrivers/media/platform/renesas/rcar-vin/rcar-v4l2.c drivers/media/platform/renesas/vsp1/vsp1_entity.c drivers/media/v4l2-core/v4l2-subdev.c +2 more+16 -90 replies
2/4media: v4l: subdev: Add a helper to tell if a sub-device state is activeinclude/media/v4l2-subdev.h+8 -00 replies
3/4media: ccs: Rework initialising sub-device statedrivers/media/i2c/ccs/ccs-core.c+30 -170 replies
4/4media: ccs: Fix a (harmless) lockdep warningdrivers/media/i2c/ccs/ccs-core.c+12 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] V4L2 sub-device active state helper, CCS fixes

Hi folks,

This set includes a helper for working with V4L2 sub-device active state as well as a fix for the CCS driver sub-device state patch.

since v1:

- There were other drivers using __v4l2_subdev_state_alloc(). Ouch. Change those users as well. Note that this function should not be used in drivers, hence API niceness is not a high priority.

Sakari Ailus (4):
media: v4l: subdev: Set sub-device active state earlier
media: v4l: subdev: Add a helper to tell if a sub-device state is
active
media: ccs: Rework initialising sub-device state
media: ccs: Fix a (harmless) lockdep warning

 drivers/media/i2c/ccs/ccs-core.c              | 64 ++++++++++++-------
 .../platform/renesas/rcar-vin/rcar-v4l2.c     |  3 +-
 .../media/platform/renesas/vsp1/vsp1_entity.c |  3 +-
 drivers/media/v4l2-core/v4l2-subdev.c         | 14 ++--
 drivers/staging/media/tegra-video/vi.c        |  2 +-
 include/media/v4l2-subdev.h                   | 11 +++-
 6 files changed, 66 insertions(+), 31 deletions(-)
Signature · 1 line
2.39.2