RE: [PATCH] usb: gadget: uvc: add bInterval checking for HS mode

2021-03-09 Thread Pawel Laszczak
Please check whether the problem occurs in this fragment of code: https://elixir.bootlin.com/linux/latest/source/drivers/usb/cdns3/gadget.c#L2569 zlp_buff is allocated with kzalloc. Pawel >>On Fri, Mar 5, 2021 at 12:40 AM Pawel Laszczak >>wrote: >>From: Pawel Laszcza

RE: [PATCH] usb: gadget: uvc: add bInterval checking for HS mode

2021-03-08 Thread Pawel Laszczak
Peter, You're right. This patch is wrong. I didn't remove the "uvc_hs_streaming_ep.bInterval" assignment. It has been fixed in v2. Pawel >> >>On Fri, Mar 5, 2021 at 12:40 AM Pawel Laszczak >>wrote: >>From: Pawel Laszczak >> >>Patch adds

RE: [PATCH] usb: gadget: uvc: add bInterval checking for HS mode

2021-03-08 Thread Pawel Laszczak
> >On Fri, Mar 5, 2021 at 12:40 AM Pawel Laszczak >wrote: >From: Pawel Laszczak > >Patch adds extra checking for bInterval passed by configfs. >The 5.6.4 chapter of USB Specification (rev. 2.0) say: >"A high-bandwidth endpoint must specify a

[PATCH] usb: gadget: uvc: add bInterval checking for HS mode

2021-03-04 Thread Pawel Laszczak
From: Pawel Laszczak Patch adds extra checking for bInterval passed by configfs. The 5.6.4 chapter of USB Specification (rev. 2.0) say: "A high-bandwidth endpoint must specify a period of 1x125 µs (i.e., a bInterval value of 1)." The issue was observed during testing UVC class on CV. I treat thi