]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (8914): cx18: Throttle mmio to/from the CX23418 so boards work in older systems
authorAndy Walls <awalls@radix.net>
Mon, 1 Sep 2008 03:40:41 +0000 (00:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 12 Oct 2008 11:36:58 +0000 (09:36 -0200)
commitc641d09c60bfa36c7cf70444f24265090e51f5ce
tree2f3a9cc7d86aed3e0d5f1c7631a7354bb490fb29
parentb1526421eac9a912b2cda7e147f1da2aa31be278
V4L/DVB (8914): cx18: Throttle mmio to/from the CX23418 so boards work in older systems

cx18: Throttle mmio to/from the CX23418 so boards work in older systems.  The
CX23418 couldn't reliably handle mmio at the rate at which the cx18 driver was
attempting to access the chip.  The PCI bridge arrangements and settings on
modern motherboards still allowed the CX23418 to work OK, but it didn't work
well on many older motherboards: mysterious I2C errors, firmware loading errors,
etc.  This patch adds a throttle to *all* mmio access to the CX23418.  It
defaults to a delay of 31 ns, but is adjustable by the mmio_ndelay module parm.
My HVR-1600 and Raptor PAL/SECAM card now function for analog capture on a
motherboard with an Intel 82810E Northbridge and 82801AA Southbridge.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-driver.c
drivers/media/video/cx18/cx18-driver.h
drivers/media/video/cx18/cx18-io.c
drivers/media/video/cx18/cx18-io.h
drivers/media/video/cx18/cx18-queue.c
drivers/media/video/cx18/cx18-queue.h