All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/3] [RESEND] media: uvcvideo: Implement granular power management
@ 2022-09-20 14:09 Ricardo Ribalda
  2022-09-20 14:09 ` [PATCH v1 1/3] media: uvcvideo: Only create input devs if hw supports it Ricardo Ribalda
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ricardo Ribalda @ 2022-09-20 14:09 UTC (permalink / raw)
  To: Mauro Carvalho Chehab
  Cc: linux-kernel, Tomasz Figa, Laurent Pinchart, Ricardo Ribalda,
	linux-media

Instead of suspending/resume the USB device at open()/close(), do it
when the device is actually used.

This way we can reduce the power consumption when a service is holding
the video device and leaving it in an idle state.

To: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-media@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>

---
Ricardo Ribalda (3):
      media: uvcvideo: Only create input devs if hw supports it
      media: uvcvideo: Refactor streamon/streamoff
      media: uvcvideo: Do power management granularly

 drivers/media/usb/uvc/uvc_status.c |  23 +++++
 drivers/media/usb/uvc/uvc_v4l2.c   | 193 ++++++++++++++++++++++++++++++-------
 drivers/media/usb/uvc/uvcvideo.h   |   1 +
 3 files changed, 182 insertions(+), 35 deletions(-)
---
base-commit: 521a547ced6477c54b4b0cc206000406c221b4d6
change-id: 20220920-resend-powersave-5981719ed267

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

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

end of thread, other threads:[~2022-10-25 13:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-20 14:09 [PATCH v1 0/3] [RESEND] media: uvcvideo: Implement granular power management Ricardo Ribalda
2022-09-20 14:09 ` [PATCH v1 1/3] media: uvcvideo: Only create input devs if hw supports it Ricardo Ribalda
2022-09-20 14:09 ` [PATCH v1 2/3] media: uvcvideo: Refactor streamon/streamoff Ricardo Ribalda
2022-09-20 14:09 ` [PATCH v1 3/3] media: uvcvideo: Do power management granularly Ricardo Ribalda
2022-10-25 12:45   ` Laurent Pinchart
2022-10-25 12:55     ` Ricardo Ribalda
2022-10-25 13:07       ` Ricardo Ribalda

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.