public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/8] media: uvcvideo: Invert granular PM logic + PM fix
@ 2025-06-30 14:20 Ricardo Ribalda
  2025-06-30 14:20 ` [PATCH v3 1/8] media: uvcvideo: Use vb2 ioctl and fop helpers Ricardo Ribalda
                   ` (7 more replies)
  0 siblings, 8 replies; 15+ messages in thread
From: Ricardo Ribalda @ 2025-06-30 14:20 UTC (permalink / raw)
  To: Laurent Pinchart, Mauro Carvalho Chehab, Hans Verkuil,
	Hans de Goede, Hans de Goede
  Cc: linux-media, linux-kernel, Ricardo Ribalda, Hans Verkuil

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 patches that are in uvc/for-next but not
in media-committer:
media: uvcvideo: Remove stream->is_streaming field
media: uvcvideo: Split uvc_stop_streaming()
media: uvcvideo: Handle locks in uvc_queue_return_buffers
media: uvcvideo: Use vb2 ioctl and fop helpers
Do not review them again.

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
---
Changes in v3:
- Rebase
- Merge Invert PM patch with add support for compat ioctls
- Export different core function
- Inline the pm_ioctl patch
- Fix typo in comment
- Link to v2: https://lore.kernel.org/r/20250602-uvc-grannular-invert-v2-0-c871934ad880@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 (7):
      media: uvcvideo: Handle locks in uvc_queue_return_buffers
      media: uvcvideo: Split uvc_stop_streaming()
      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: core: export v4l2_translate_cmd
      media: uvcvideo: uvc_v4l2_unlocked_ioctl: Invert PM logic

 drivers/media/usb/uvc/uvc_ctrl.c     |   8 +-
 drivers/media/usb/uvc/uvc_driver.c   |  37 +---
 drivers/media/usb/uvc/uvc_metadata.c |   8 +-
 drivers/media/usb/uvc/uvc_queue.c    | 199 +++++---------------
 drivers/media/usb/uvc/uvc_v4l2.c     | 356 +++++------------------------------
 drivers/media/usb/uvc/uvcvideo.h     |  37 +---
 drivers/media/v4l2-core/v4l2-ioctl.c |   5 +-
 include/media/v4l2-ioctl.h           |   1 +
 8 files changed, 115 insertions(+), 536 deletions(-)
---
base-commit: 35392e855abf7d02ad3b061cbc75c7c7c37f0577
change-id: 20250528-uvc-grannular-invert-19ad34c59391

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


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

end of thread, other threads:[~2025-07-01  4:40 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-30 14:20 [PATCH v3 0/8] media: uvcvideo: Invert granular PM logic + PM fix Ricardo Ribalda
2025-06-30 14:20 ` [PATCH v3 1/8] media: uvcvideo: Use vb2 ioctl and fop helpers Ricardo Ribalda
2025-06-30 14:20 ` [PATCH v3 2/8] media: uvcvideo: Handle locks in uvc_queue_return_buffers Ricardo Ribalda
2025-06-30 14:20 ` [PATCH v3 3/8] media: uvcvideo: Split uvc_stop_streaming() Ricardo Ribalda
2025-06-30 14:20 ` [PATCH v3 4/8] media: uvcvideo: Remove stream->is_streaming field Ricardo Ribalda
2025-06-30 14:20 ` [PATCH v3 5/8] media: uvcvideo: Turn on the camera if V4L2_EVENT_SUB_FL_SEND_INITIAL Ricardo Ribalda
2025-06-30 22:09   ` Laurent Pinchart
2025-06-30 14:20 ` [PATCH v3 6/8] media: uvcvideo: Do not enable camera during UVCIOC_CTRL_MAP* Ricardo Ribalda
2025-06-30 22:14   ` Laurent Pinchart
2025-07-01  4:40     ` Ricardo Ribalda
2025-06-30 14:20 ` [PATCH v3 7/8] media: core: export v4l2_translate_cmd Ricardo Ribalda
2025-06-30 14:42   ` hans
2025-06-30 14:20 ` [PATCH v3 8/8] media: uvcvideo: uvc_v4l2_unlocked_ioctl: Invert PM logic Ricardo Ribalda
2025-06-30 14:43   ` Hans Verkuil
2025-06-30 22:25   ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox