login
Header Space

 
 

Re: [PATCH] v4l: fix build error for et61x251 driver

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Luca Risolia <luca.risolia@...>
Cc: <aherrman@...>, Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, <linux-usb-devel@...>, <video4linux-list@...>, <linux-kernel@...>
Date: Friday, September 14, 2007 - 11:56 am

> through ioctl()? It's not as immediate and safe as controlling the device

Direct register access for debug ok, but not this is not ok for 
normal usage.

It should be. However, things like direct register access (for non-debug 
mode) may allow some controls that weren't visible via ioctl. That's why 
the sysfs usage may be evil: a driver may have some parts accessible only 
via sysfs interface, on a non-standard way, without offering the official 
API support. So, some device functionalities may be hidden from userspace 
apps that are compliant with V4L2.

Summarizing:

Linus patch seems to be the better solution to solve the V4L1_COMPAT bug.

I would also convert the other container_of stuff to to_video_device (to 
have code uniformity).

et61x251 direct register interfaces should be available only if 
CONFIG_VIDEO_ADV_DEBUG is selected to avoid its miss-usage. If there are 
other device configurations that needs specific register settings not yet 
provided, this should be provided via V4L2 standard ioctls.

This way, et61x251 will be compliant with V4L2.

I still think that we should work at the remaining sysfs classes to make 
them coherent on all V4L devices.

Cheers,
Mauro.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] v4l: fix build error for et61x251 driver, Andreas Herrmann, (Thu Sep 13, 6:27 pm)
Re: [PATCH] v4l: fix build error for et61x251 driver, Luca Risolia, (Thu Sep 13, 6:28 pm)
Re: [PATCH] v4l: fix build error for et61x251 driver, Linus Torvalds, (Thu Sep 13, 8:09 pm)
Re: [PATCH] v4l: fix build error for et61x251 driver, Luca Risolia, (Thu Sep 13, 9:53 pm)
Re: [PATCH] v4l: fix build error for et61x251 driver, Mauro Carvalho Chehab, (Fri Sep 14, 8:50 am)
Re: [PATCH] v4l: fix build error for et61x251 driver, Luca Risolia, (Fri Sep 14, 9:57 am)
Re: [PATCH] v4l: fix build error for et61x251 driver, Mauro Carvalho Chehab, (Fri Sep 14, 11:56 am)
speck-geostationary