V4L: add "function" sysfs attribute to v4l devices
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | V4L: add "function" sysfs attribute to v4l deviceslinux/ linux/ linux/ +2 more | +72 | 9 replies | |
| 2/2 | V4L: add "function" sysfs attribute to v4l deviceslinux/ linux/ linux/ +2 more | +40 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] V4L: add "function" sysfs attribute to v4l devices
Hello!
Two patches follow, related to discussions[1][2] on the hotplug mailing list, in an attempt to solve enumeration problems when multiple v4l devices are present in a system and the resulting init order was not guaranteed to be the same from boot-to-boot (video0 isn't always the same device). The goal is to create things like this with udev:
pci-0000:01:06.0-video-mpeg-cap -> ../../video0
pci-0000:01:07.0-video-yuv-cap -> ../../video1
pci-0000:01:06.0-video-yuv-cap -> ../../video24First patch is the sysfs infrastructure to support exporting a "function" string. This value is related to the existing "type" field, but is singular in use and not designed for internal driver use, as "type" seems to be.
Second patch is a first stab at providing "function" entries for hardware I have access to.
Thanks,
-Kees
[1] http://marc.info/?t=118591155400012&r=1&w=2
[2] some recent discussion on the new hotplug list, but I can't find an archive link since it moved to vger...
Signature · 6 lines
Kees Cook @outflux.net -- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list