15 Oct, 2007
1 commit
-
... should be unsigned int
Signed-off-by: Al Viro
Signed-off-by: Linus Torvalds
14 Oct, 2007
3 commits
-
i2c_algorithm.algo_control is about to be removed.
Signed-off-by: Jean Delvare
Reviewed-by: Michael Krufky
Acked-by: Mauro Carvalho Chehab -
This removes NOP implementations of i2c_algorithm.algo_control.
With this change, there are no implementations of this hook in
the kernel.org tree ... that hook seems about ripe to remove.Signed-off-by: David Brownell
Signed-off-by: Jean Delvare -
Breaks on any target that has copy_to_user() defined as a non-trivial
macro.Signed-off-by: Al Viro
Signed-off-by: Linus Torvalds
13 Oct, 2007
2 commits
-
struct cdev does not need the kobject name to be set, as it is never
used. This patch fixes up the few places it is set.Signed-off-by: Greg Kroah-Hartman
Acked-by: Mauro Carvalho Chehab -
This changes the uevent buffer functions to use a struct instead of a
long list of parameters. It does no longer require the caller to do the
proper buffer termination and size accounting, which is currently wrong
in some places. It fixes a known bug where parts of the uevent
environment are overwritten because of wrong index calculations.Many thanks to Mathieu Desnoyers for finding bugs and improving the
error handling.Signed-off-by: Kay Sievers
Cc: Mathieu Desnoyers
Cc: Cornelia Huck
Signed-off-by: Greg Kroah-Hartman
12 Oct, 2007
1 commit
-
* 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (867 commits)
[SKY2]: status polling loop (post merge)
[NET]: Fix NAPI completion handling in some drivers.
[TCP]: Limit processing lost_retrans loop to work-to-do cases
[TCP]: Fix lost_retrans loop vs fastpath problems
[TCP]: No need to re-count fackets_out/sacked_out at RTO
[TCP]: Extract tcp_match_queue_to_sack from sacktag code
[TCP]: Kill almost unused variable pcount from sacktag
[TCP]: Fix mark_head_lost to ignore R-bit when trying to mark L
[TCP]: Add bytes_acked (ABC) clearing to FRTO too
[IPv6]: Update setsockopt(IPV6_MULTICAST_IF) to support RFC 3493, try2
[NETFILTER]: x_tables: add missing ip6t_modulename aliases
[NETFILTER]: nf_conntrack_tcp: fix connection reopening
[QETH]: fix qeth_main.c
[NETLINK]: fib_frontend build fixes
[IPv6]: Export userland ND options through netlink (RDNSS support)
[9P]: build fix with !CONFIG_SYSCTL
[NET]: Fix dev_put() and dev_hold() comments
[NET]: make netlink user -> kernel interface synchronious
[NET]: unify netlink kernel socket recognition
[NET]: cleanup 3rd argument in netlink_sendskb
...Fix up conflicts manually in Documentation/feature-removal-schedule.txt
and my new least favourite crap, the "mod_devicetable" support in the
files include/linux/mod_devicetable.h and scripts/mod/file2alias.c.(The latter files seem to be explicitly _designed_ to get conflicts when
different subsystems work with them - that have an absolutely horrid
lack of subsystem separation!)Signed-off-by: Linus Torvalds
11 Oct, 2007
7 commits
-
Since hardware header operations are part of the protocol class
not the device instance, make them into a separate object and
save memory.Signed-off-by: Stephen Hemminger
Signed-off-by: David S. Miller -
The rest of V4L files.
There is one list_for_each+list_entry in cpia_pp.c that
wasn't changed because it expects the loop iterator to remain NULL if
the list is empty.A bug in vivi is fixed; the 'safe' version needs to be used because the loop
deletes the list entries.Simplify a second loop in vivi and get rid if an un-used variable in that loop.
Signed-off-by: Trent Piepho
Signed-off-by: Mauro Carvalho Chehab -
Signed-off-by: Trent Piepho
Reviewed-by: Mike Isely
Signed-off-by: Mauro Carvalho Chehab -
A couple loops weren't changed because they expected the loop iterator
to be left as NULL if the list was empty. Maybe the code should just
check for that first, then loop?Adjust some of the loop logic to be simpler.
Signed-off-by: Trent Piepho
Signed-off-by: Mauro Carvalho Chehab -
Also fixed a few cases of cut&paste errors where 'buf' would be set to the
first entry in the list prior to be used as the loop iterator. In one case
the value of buf was used before it was changed, but the rest were
unnecessary.There was one list_for_each+list_entry loop that wasn't changed, since it
depending on the loop iterator being left as NULL if the list was empty.Signed-off-by: Trent Piepho
CC: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab -
Signed-off-by: Trent Piepho
Signed-off-by: Mauro Carvalho Chehab -
Signed-off-by: Trent Piepho
Signed-off-by: Mauro Carvalho Chehab
10 Oct, 2007
26 commits
-
zc0301, remove bad usage of ERESTARTSYS
down_read_trylock can't be interrupted and so ERESTARTSYS would reach
userspace, which is not permitted. Change it to EAGAINSigned-off-by: Jiri Slaby
Acked-by: Luca Risolia
Signed-off-by: Mauro Carvalho Chehab -
w9968cf, remove bad usage of ERESTARTSYS
down_read_trylock can't be interrupted and so ERESTARTSYS would reach
userspace, which is not permitted. Change it to EAGAINSigned-off-by: Jiri Slaby
Acked-by: Luca Risolia
Signed-off-by: Mauro Carvalho Chehab -
*Disable DMA explictly on suspend
*Enable DMA on resume, after all buffers were configured
*Disable overlay on resume - apps should enable it when X is resumedSigned-off-by: Maxim Levitsky
Signed-off-by: Mauro Carvalho Chehab -
The return value of videobuf_alloc() is unchecked but this function will
return NULL on an error. Check for NULL and make videobuf_reqbufs()
return the number of successfully allocated buffers.Also, fix saa7146_video.c and bttv-driver.c to use this returned
buffer count.Tested against the vivi driver. Not tested against saa7146 or bt8xx
devices.Signed-off-by: Brandon Philips
Signed-off-by: Mauro Carvalho Chehab -
The prototypes for the show and store methods of a device_attribute changed in
kernel 2.6.13, but the code in pvrusb2 was never updated. I guess the
DEBUGIFC stuff isn't used much....Signed-off-by: Trent Piepho
Signed-off-by: Mauro Carvalho Chehab -
Signed-off-by: Trent Piepho
Signed-off-by: Mauro Carvalho Chehab -
It needs to select VIDEOBUF_GEN and VIDEOBUF_DMA_SG, since it uses those
modules.Signed-off-by: Trent Piepho
Signed-off-by: Mauro Carvalho Chehab -
fix bad Kconfig dependency of cx23885 module.
Signed-off-by: Michael Krufky
Signed-off-by: Mauro Carvalho Chehab -
add Avermedia dvb-t express card 34 (usb2) id
Signed-off-by: Joachim Steiger
Signed-off-by: Michael Krufky
Signed-off-by: Mauro Carvalho Chehab -
Recognize the KWorld ATSC115 PCI ID as a hardware clone of the ATSC110.
Signed-off-by: Eric Sandeen
Signed-off-by: Michael Krufky
Signed-off-by: Mauro Carvalho Chehab -
The currently used "struct class_device" will be removed from the
kernel. Here is a patch that converts all users in drivers/media/video/
to struct device.Reviewed-by: Thierry Merle
Reviewed-by: Mike Isely
Reviewed-by: Luca Risolia
Signed-off-by: Kay Sievers
Signed-off-by: Mauro Carvalho Chehab -
In the past, videobuf_queue_init were used to initialize PCI DMA videobuffers.
This patch renames it, to avoid confusion with the previous kernel API, doing:
s/videobuf_queue_init/void videobuf_queue_core_init/Also, the operations is now part of the function parameter. The function will
also add a test if this is defined, otherwise producing BUG.Signed-off-by: Mauro Carvalho Chehab
-
This workaround fix a bug that happens on some SMP machines. On those machines,
videobuf_iolock is called too soon, before file .mmap handler. This patch calls
the scheduler before iolocking, allowing it to properly call the pending mmap.Signed-off-by: Mauro Carvalho Chehab
-
Before the videobuf redesign, a procedure for re-using videobuf without PCI
scatter/gather where provided by changing the pci-dependent operations by
other operations.With the newer approach, those methods are obsolete and can safelly be removed.
Signed-off-by: Mauro Carvalho Chehab
-
Signed-off-by: Robert P. J. Day
Signed-off-by: Mauro Carvalho Chehab -
cx23885 driver were converted to use the newer videobuf support. Unfortunately,
the constructor weren't changed. This causes an oops, since the abstract methods
(implemented as callbacks) aren't defined.Signed-off-by: Mauro Carvalho Chehab
Reviewed-by: Michael Krufky -
This is a Lifeview hybrid OEM board.
Signed-off-by: Mauro Carvalho Chehab
-
No need to cast the void pointer returned by kmalloc() in
drivers/media/video/zoran_driver.c::v4l_fbuffer_alloc().Signed-off-by: Jesper Juhl
Signed-off-by: Mauro Carvalho Chehab -
cx23885 was still uses the old video-buf includes and code, which would only
`work' if one happened to be compiling against a kernel that had the old
headers. Even then, it wouldn't actually work, it would just compile without
errors.Signed-off-by: Trent Piepho
Signed-off-by: Mauro Carvalho Chehab -
CONFIG_VIDEO_BUF_DVB became CONFIG_VIDEOBUF_DVB.
But in these cases, it makes more sense to use CONFIG_VIDEO_SAA7134_DVB
or CONFIG_VIDEO_CX88_DVB_MODULE depending on the driver.The reference in cx23885.h should just be removed, as the code there needs to
be included if DVB is on or off. I do not think you can even compile the
cx23885 driver without DVB. It's clearly just leftover from when the file was
obvious copied from the cx88 driver (which is not mentioned in the copyright
BTW).Signed-off-by: Trent Piepho
Signed-off-by: Mauro Carvalho Chehab -
Here's an attempted update to the full kthread API + wake_up_process:
Signed-off-by: Andrew Morton
CC: Andrew de Quincey
Signed-off-by: Mauro Carvalho Chehab -
If videobuf_read_stream reads two or more buffers it was overwriting the first one
Signed-off-by: Maxim Levitsky
Signed-off-by: Mauro Carvalho Chehab
http://thread.gmane.org/gmane.comp.video.video4linux/34978/focus=34981
Reviewed-by: Ricardo Cerqueira -
Vivi driver is now simpler. This patch removes the now unused vars.
Signed-off-by: Mauro Carvalho Chehab
-
The reading/streaming fields are used for mutual exclusion of the queue and
should be protected by the queue lock.Signed-off-by: Brandon Philips
Signed-off-by: Mauro Carvalho Chehab
http://thread.gmane.org/gmane.comp.video.video4linux/34978/focus=34981
Reviewed-by: Ricardo Cerqueira -
The "resource" locking in vivi isn't needed since
streamon/streamoff/read_stream do mutual exclusion using
q->reading/q->streaming.Plus it is sort of broken:
a) res_locked() use in vivi_read() is racey.
b) res_free() calls mutex_lock twice causing streamoff to breakSigned-off-by: Brandon Philips
Signed-off-by: Mauro Carvalho Chehab -
Since vivi is using videobuf_read_stream() it can use videobuf_poll_stream()
now.Signed-off-by: Brandon Philips
Signed-off-by: Mauro Carvalho Chehab