Re: [RFC PATCH] v4l2-event/dev: wakeup pending events when unregistering

2018-01-22 Thread Michael Walz
Hi Hans, On 18.01.2018 16:13, Hans Verkuil wrote: Only apply the change to v4l2_dev.c, ignore the changes to v4l2_event. I think it is sufficient to just apply that bit. I tried both variants, with changes to v4l2_event and without. Both did not work out of the box. I think the problem is in

Re: V4L2 v4l2_event_dequeue blocks forever when USB/UVC disconnects

2018-01-18 Thread Michael Walz
On 18.01.2018 11:18, Hans Verkuil wrote: Are you able to compile the kernel if I give you a patch to test? It should be a fairly easy fix. Hi Hans, I have a working yocto setup. Should be no problem to integrate the patch. Thanks a lot and best regards, Michael

V4L2 v4l2_event_dequeue blocks forever when USB/UVC disconnects

2018-01-18 Thread Michael Walz
Hi there, I am currently developing a USB/UVC camera and I think I discovered an issue in the V4L2 event system. In userland I have implemented a thread for the VIDIOC_DQEVENT ioctl, which blocks until there is a new event. This works perfectly until the camera is disconnected during operation