linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL FOR v3.5] Update v4l2-dev/ioctl.c to add gspca locking requirements
@ 2012-05-10 11:59 Hans Verkuil
  2012-05-10 15:35 ` Laurent Pinchart
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Verkuil @ 2012-05-10 11:59 UTC (permalink / raw)
  To: linux-media; +Cc: Hans de Goede

Hi Mauro,

Here is the pull request for this. HdG's gspca work depends on this and he likes to get this
in for 3.5. I think these are pretty good improvements and for 3.6 I intend to build on it,
basically getting rid of the whole huge switch statement in v4l2-ioctl.c and replace it with
table look-ups and callbacks.

But for now this is primarily to support the gspca work.

Regards,

	Hans

The following changes since commit 121b3ddbe4ad17df77cb7284239be0a63d9a66bd:

  [media] media: videobuf2-dma-contig: quiet sparse noise about plain integer as NULL pointer (2012-05-08 14:35:14 -0300)

are available in the git repository at:

  git://linuxtv.org/hverkuil/media_tree.git ioctlv2

for you to fetch changes up to 758385a2210cb60a0a1bf46bf9a8e1fce837c67b:

  v4l2-framework.txt: document v4l2_dont_use_cmd (2012-05-10 10:41:08 +0200)

----------------------------------------------------------------
Hans Verkuil (6):
      v4l2-dev: make it possible to skip locking for selected ioctls.
      v4l2-dev/ioctl: determine the valid ioctls upfront.
      tea575x-tuner: mark VIDIOC_S_HW_FREQ_SEEK as an invalid ioctl.
      v4l2-ioctl: handle priority handling based on a table lookup.
      v4l2-dev: add flag to have the core lock all file operations.
      v4l2-framework.txt: document v4l2_dont_use_cmd

 Documentation/video4linux/v4l2-framework.txt    |   37 ++++-
 drivers/media/common/saa7146_fops.c             |    4 +
 drivers/media/radio/wl128x/fmdrv_v4l2.c         |    4 +
 drivers/media/video/blackfin/bfin_capture.c     |    4 +
 drivers/media/video/cpia2/cpia2_v4l.c           |    4 +
 drivers/media/video/cx231xx/cx231xx-video.c     |    4 +
 drivers/media/video/davinci/vpbe_display.c      |    4 +
 drivers/media/video/davinci/vpif_capture.c      |    4 +
 drivers/media/video/davinci/vpif_display.c      |    4 +
 drivers/media/video/em28xx/em28xx-video.c       |    4 +
 drivers/media/video/fsl-viu.c                   |    4 +
 drivers/media/video/ivtv/ivtv-streams.c         |    4 +
 drivers/media/video/mem2mem_testdev.c           |    4 +
 drivers/media/video/mx2_emmaprp.c               |    4 +
 drivers/media/video/s2255drv.c                  |    4 +
 drivers/media/video/s5p-fimc/fimc-capture.c     |    4 +
 drivers/media/video/s5p-fimc/fimc-core.c        |    4 +
 drivers/media/video/s5p-g2d/g2d.c               |    4 +
 drivers/media/video/s5p-jpeg/jpeg-core.c        |    8 +
 drivers/media/video/s5p-mfc/s5p_mfc.c           |    6 +
 drivers/media/video/s5p-tv/mixer_video.c        |    4 +
 drivers/media/video/sh_vou.c                    |    4 +
 drivers/media/video/soc_camera.c                |    4 +
 drivers/media/video/tm6000/tm6000-video.c       |    4 +
 drivers/media/video/usbvision/usbvision-video.c |    4 +
 drivers/media/video/v4l2-dev.c                  |  218 ++++++++++++++++++++++++--
 drivers/media/video/v4l2-ioctl.c                |  538 +++++++++++++++++----------------------------------------------
 drivers/staging/media/dt3155v4l/dt3155v4l.c     |    4 +
 include/media/v4l2-dev.h                        |   25 +++
 sound/i2c/other/tea575x-tuner.c                 |    3 +
 30 files changed, 516 insertions(+), 411 deletions(-)

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

* Re: [GIT PULL FOR v3.5] Update v4l2-dev/ioctl.c to add gspca locking requirements
  2012-05-10 11:59 [GIT PULL FOR v3.5] Update v4l2-dev/ioctl.c to add gspca locking requirements Hans Verkuil
@ 2012-05-10 15:35 ` Laurent Pinchart
  2012-05-10 17:57   ` Hans de Goede
  0 siblings, 1 reply; 3+ messages in thread
From: Laurent Pinchart @ 2012-05-10 15:35 UTC (permalink / raw)
  To: Hans Verkuil; +Cc: linux-media, Hans de Goede

Hi Hans,

On Thursday 10 May 2012 13:59:34 Hans Verkuil wrote:
> Hi Mauro,
> 
> Here is the pull request for this. HdG's gspca work depends on this and he
> likes to get this in for 3.5. I think these are pretty good improvements
> and for 3.6 I intend to build on it, basically getting rid of the whole
> huge switch statement in v4l2-ioctl.c and replace it with table look-ups
> and callbacks.
> 
> But for now this is primarily to support the gspca work.

The patches have been posted as RFCs early today and the pull request is 
already here... I'd like to review them first if you don't mind :-)

-- 
Regards,

Laurent Pinchart


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

* Re: [GIT PULL FOR v3.5] Update v4l2-dev/ioctl.c to add gspca locking requirements
  2012-05-10 15:35 ` Laurent Pinchart
@ 2012-05-10 17:57   ` Hans de Goede
  0 siblings, 0 replies; 3+ messages in thread
From: Hans de Goede @ 2012-05-10 17:57 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: Hans Verkuil, linux-media

Hi,

On 05/10/2012 05:35 PM, Laurent Pinchart wrote:
> Hi Hans,
>
> On Thursday 10 May 2012 13:59:34 Hans Verkuil wrote:
>> Hi Mauro,
>>
>> Here is the pull request for this. HdG's gspca work depends on this and he
>> likes to get this in for 3.5. I think these are pretty good improvements
>> and for 3.6 I intend to build on it, basically getting rid of the whole
>> huge switch statement in v4l2-ioctl.c and replace it with table look-ups
>> and callbacks.
>>
>> But for now this is primarily to support the gspca work.
>
> The patches have been posted as RFCs early today and the pull request is
> already here... I'd like to review them first if you don't mind :-)

I reviewed and acked them (Hans V. has addressed my one concern on irc),
of course having multiple reviewers is good, so go ahead. Note that there
is not a real lot of interesting stuff inside though wrt potential locking
issues as the old behavior is preserved.

This patch just allows for drivers to selective opt out of the video_device
/ v4l2-dev.c lock for certain ioctls and for all non ioctl fops.

Regards,

Hans

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

end of thread, other threads:[~2012-05-10 17:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-10 11:59 [GIT PULL FOR v3.5] Update v4l2-dev/ioctl.c to add gspca locking requirements Hans Verkuil
2012-05-10 15:35 ` Laurent Pinchart
2012-05-10 17:57   ` Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).