linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/9] media: uvcvideo: Invert granular PM logic + PM fix
@ 2025-06-02 13:06 Ricardo Ribalda
  2025-06-02 13:06 ` [PATCH v2 1/9] media: uvcvideo: Refactor uvc_queue_streamon Ricardo Ribalda
                   ` (8 more replies)
  0 siblings, 9 replies; 18+ messages in thread
From: Ricardo Ribalda @ 2025-06-02 13:06 UTC (permalink / raw)
  To: Laurent Pinchart, Hans de Goede, Mauro Carvalho Chehab,
	Hans Verkuil
  Cc: linux-media, linux-kernel, Ricardo Ribalda, Hans Verkuil,
	Hans de Goede

It makes more sense to have a list of the ioctls that need power than
the other way around. This patchset takes care of this.

It also fixes one error in the PM logic introduced in a recent patchset.

To support CI I have included two patches that are in uvc/next but not
in media-committer:
media: uvcvideo: Refactor uvc_queue_streamon
media: uvcvideo: Refactor uvc_v4l2_compat_ioctl32
Do not review them again.

To avoid conflicts I am adding the fop patchset as well:
media: uvcvideo: Use vb2 ioctl and fop helpers
media: uvcvideo: Remove stream->is_streaming field
Please review them in https://patchwork.linuxtv.org/project/linux-media/list/?series=15664

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
---
Changes in v2. Thanks HdG:
- Rebase fop
- CodeStyle
- Refactor SEND_INITIAL to avoid lis_del()
- Squash "invert PM logic" and "unless is needed"
- Link to v1: https://lore.kernel.org/r/20250528-uvc-grannular-invert-v1-0-d01581f9cc25@chromium.org

---
Hans Verkuil (1):
      media: uvcvideo: Use vb2 ioctl and fop helpers

Ricardo Ribalda (8):
      media: uvcvideo: Refactor uvc_queue_streamon
      media: uvcvideo: Refactor uvc_v4l2_compat_ioctl32
      media: uvcvideo: Remove stream->is_streaming field
      media: uvcvideo: Turn on the camera if V4L2_EVENT_SUB_FL_SEND_INITIAL
      media: uvcvideo: Do not enable camera during UVCIOC_CTRL_MAP*
      media: uvcvideo: uvc_v4l2_unlocked_ioctl: Invert PM logic
      media: core: export v4l2_compat_translate_cmd()
      media: uvcvideo: Support granular power saving for compat syscalls

 drivers/media/usb/uvc/uvc_ctrl.c              |   8 +-
 drivers/media/usb/uvc/uvc_driver.c            |  34 +--
 drivers/media/usb/uvc/uvc_metadata.c          |   8 +-
 drivers/media/usb/uvc/uvc_queue.c             | 154 +----------
 drivers/media/usb/uvc/uvc_v4l2.c              | 367 +++++---------------------
 drivers/media/usb/uvc/uvcvideo.h              |  38 +--
 drivers/media/v4l2-core/v4l2-compat-ioctl32.c |   1 +
 7 files changed, 87 insertions(+), 523 deletions(-)
---
base-commit: 5e1ff2314797bf53636468a97719a8222deca9ae
change-id: 20250528-uvc-grannular-invert-19ad34c59391

Best regards,
-- 
Ricardo Ribalda <ribalda@chromium.org>


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2025-06-30 13:39 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-02 13:06 [PATCH v2 0/9] media: uvcvideo: Invert granular PM logic + PM fix Ricardo Ribalda
2025-06-02 13:06 ` [PATCH v2 1/9] media: uvcvideo: Refactor uvc_queue_streamon Ricardo Ribalda
2025-06-02 13:06 ` [PATCH v2 2/9] media: uvcvideo: Refactor uvc_v4l2_compat_ioctl32 Ricardo Ribalda
2025-06-02 13:06 ` [PATCH v2 3/9] media: uvcvideo: Use vb2 ioctl and fop helpers Ricardo Ribalda
2025-06-02 13:06 ` [PATCH v2 4/9] media: uvcvideo: Remove stream->is_streaming field Ricardo Ribalda
2025-06-02 13:06 ` [PATCH v2 5/9] media: uvcvideo: Turn on the camera if V4L2_EVENT_SUB_FL_SEND_INITIAL Ricardo Ribalda
2025-06-02 13:06 ` [PATCH v2 6/9] media: uvcvideo: Do not enable camera during UVCIOC_CTRL_MAP* Ricardo Ribalda
2025-06-02 13:06 ` [PATCH v2 7/9] media: uvcvideo: uvc_v4l2_unlocked_ioctl: Invert PM logic Ricardo Ribalda
2025-06-16 14:14   ` Hans de Goede
2025-06-30 13:21     ` Hans de Goede
2025-06-30 13:35   ` Hans Verkuil
2025-06-02 13:06 ` [PATCH v2 8/9] media: core: export v4l2_compat_translate_cmd() Ricardo Ribalda
2025-06-16 14:14   ` Hans de Goede
2025-06-30 13:06   ` Hans de Goede
2025-06-30 13:38   ` hans
2025-06-02 13:06 ` [PATCH v2 9/9] media: uvcvideo: Support granular power saving for compat syscalls Ricardo Ribalda
2025-06-16 14:15   ` Hans de Goede
2025-06-30 13:39   ` hans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).