mbox series

[v4,0/2] usb: gadget: uvc: handle setup stream ctrl requests

Message ID 20221019103522.2925375-1-m.grzeschik@pengutronix.de (mailing list archive)
Headers show
Series usb: gadget: uvc: handle setup stream ctrl requests | expand

Message

Michael Grzeschik Oct. 19, 2022, 10:35 a.m. UTC
This patches are handling the streaming ctrl request before sending it
to the userspace and just before it is replied to the host. Adding a
validation and some data simplifaction.

Michael Grzeschik (2):
  usb: gadget: uvc: default the ctrl request interface offsets
  usb: gadget: uvc: add validate and fix function for uvc response

 drivers/usb/gadget/function/f_uvc.c    | 17 +++++-
 drivers/usb/gadget/function/uvc.h      |  1 +
 drivers/usb/gadget/function/uvc_v4l2.c | 76 ++++++++++++++++++++++++++
 include/uapi/linux/usb/g_uvc.h         |  3 +
 4 files changed, 94 insertions(+), 3 deletions(-)