There are a lot of error logs on uvcvideo.
[17999.817207,0] uvcvideo: Marking buffer as bad (error bit set).
[17999.817390,0] uvcvideo: Frame complete (EOF found).
[17999.817946,0] uvcvideo: Dropping payload (out of sync).
[17999.818336,0] uvcvideo: frame 1 stats: 0/0/2 packets, 0/0/0 pts (!early !initial), 0/0 scr, last pts/stc/sof 0/0/0
[17999.818702,0] uvcvideo: frame 2 stats: 0/0/1 packets, 0/0/0 pts (!early !initial), 0/0 scr, last pts/stc/sof 0/0/0
[17999.818723,0] uvcvideo: Frame complete (FID bit toggled).
[17999.818790,0] uvcvideo: frame 3 stats: 0/0/1 packets, 0/0/0 pts (!early !initial), 0/1 scr, last pts/stc/sof 0/2769645217/39351
[17999.818819,2] uvcvideo: uvc_v4l2_poll
[17999.818960,0] uvcvideo: Frame complete (EOF found).
[17999.819181,0] uvcvideo: frame 4 stats: 0/0/1 packets, 0/0/0 pts (!early !initial), 0/1 scr, last pts/stc/sof 0/2769645217/39351
[17999.819200,0] uvcvideo: Marking buffer as bad (error bit set).
[17999.819452,0] uvcvideo: frame 5 stats: 0/0/1 packets, 0/0/0 pts (!early !initial), 0/1 scr, last pts/stc/sof 0/2384006215/2022
[17999.819466,0] uvcvideo: Marking buffer as bad (error bit set).
[17999.819477,0] uvcvideo: Frame complete (FID bit toggled).
[17999.819497,0] uvcvideo: frame 6 stats: 0/0/1 packets, 0/0/0 pts (!early !initial), 0/0 scr, last pts/stc/sof 0/0/0
[17999.819510,0] uvcvideo: Marking buffer as bad (error bit set).
This error message log print in below source code.
This is a UVC decode error, so i go deep to research about USB package.
Compare between OK/NG frame of usb package. There is indeed have some wrong with the usb frame data.
And when this issue happened, there also some different on the control data as below picture.
Then we continue to find out why the command "CLEAR_FEATURE_Request" will send out. The below picture showed command send function.
So if the quirks & UVC_QUIRK_NO_CLEAR_HALT is false, that will call usb_clear_halt to send command "CLEAR_FEATURE_Request".
Then that's go to find the root cause why quirks & UVC_QUIRK_NO_CLEAR_HALT is false.
As above picture showed, the permission of quirks is different between left and right. That's the root cause.
And also you can get some information throught main log.
failed to open /sys/module/uvcvideo/parameters/quirks when reset, errno 13
We fix the permission we fix the UVC error.