linux_dsm_epyc7002/drivers/media/usb/uvc
Laurent Pinchart d511eb7d64 [media] uvcvideo: Remove unneeded device disconnected flag
The UVC_DEV_DISCONNECTED flag is set when the USB device is
disconnected, and checked in the open() handler to refuse opening a
device that has been disconnected.

This is inherently racy, but the race condition is taken care of in the
V4L2 core, which also fails open() calls when the V4L2 device node has
been unregistered. As the uvcvideo USB disconnect handler unregisters
all its video device nodes, the UVC_DEV_DISCONNECTED flag doesn't serve
any purpose anymore and can be removed.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-05-30 12:12:58 -03:00
..
Kconfig [media] uvc: Depend on VIDEO_V4L2 2013-06-24 22:54:40 -03:00
Makefile [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00
uvc_ctrl.c [media] uvcvideo: Work around buggy Logitech C920 firmware 2014-09-21 20:25:54 -03:00
uvc_debugfs.c [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00
uvc_driver.c [media] uvcvideo: Remove unneeded device disconnected flag 2015-05-30 12:12:58 -03:00
uvc_entity.c [media] uvcvideo: Mark first output terminal as default video node 2012-11-28 10:30:00 -02:00
uvc_isight.c [media] rename most media/video usb drivers to media/usb 2012-08-15 16:25:07 -03:00
uvc_queue.c [media] uvcvideo: Implement DMABUF exporter role 2015-05-30 12:11:40 -03:00
uvc_status.c [media] uvcvideo: Fix open/close race condition 2013-06-08 19:51:16 -03:00
uvc_v4l2.c [media] uvcvideo: Remove unneeded device disconnected flag 2015-05-30 12:12:58 -03:00
uvc_video.c [media] uvcvideo: Fix incorrect bandwidth with Chicony device 04f2:b50b 2015-05-30 12:12:15 -03:00
uvcvideo.h [media] uvcvideo: Remove unneeded device disconnected flag 2015-05-30 12:12:58 -03:00