public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHv2 0/6] Remove .ioctl from v4l2_file_operations
@ 2015-02-17  8:44 Hans Verkuil
  2015-02-17  8:44 ` [PATCHv2 1/6] pvrusb2: replace .ioctl by .unlocked_ioctl Hans Verkuil
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Hans Verkuil @ 2015-02-17  8:44 UTC (permalink / raw)
  To: linux-media; +Cc: laurent.pinchart

Changes in v1:
- use core locking in the uvc gadget driver

All V4L2 drivers should use .unlocked_ioctl instead of .ioctl. There are
only three drivers left that do not do that: pvrusb2, radio-bcm2048 and
the uvc gadget driver.

The pvrusb2 driver does its own locking as far as I can tell, so it can
just switch to unlocked_ioctl. Ditto for radio-bcm2048.

The uvc gadget driver uses a lock for the queuing ioctls, but not for
g/s_format. Laurent suggested to just use core locking here, so that's
what I did. Compile tested only. In addition querycap didn't set
device_caps, so that was added as well (this will cause a warning
otherwise).

The last patch removes the old .ioctl op completely.

Regards,

	Hans


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-02-17 20:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-17  8:44 [PATCHv2 0/6] Remove .ioctl from v4l2_file_operations Hans Verkuil
2015-02-17  8:44 ` [PATCHv2 1/6] pvrusb2: replace .ioctl by .unlocked_ioctl Hans Verkuil
2015-02-17  8:44 ` [PATCHv2 2/6] radio-bcm2048: use unlocked_ioctl instead of ioctl Hans Verkuil
2015-02-17  8:44 ` [PATCHv2 3/6] uvc gadget: switch to v4l2 core locking Hans Verkuil
2015-02-17 20:51   ` Laurent Pinchart
2015-02-17  8:44 ` [PATCHv2 4/6] uvc gadget: switch to unlocked_ioctl Hans Verkuil
2015-02-17 20:51   ` Laurent Pinchart
2015-02-17  8:44 ` [PATCHv2 5/6] uvc gadget: set device_caps in querycap Hans Verkuil
2015-02-17  8:44 ` [PATCHv2 6/6] v4l2-core: remove the old .ioctl BKL replacement Hans Verkuil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox