aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-io.c
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2008-10-25 22:27:06 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-11-11 05:11:24 -0500
commitf3a3e881b81ae33b786759c7042de974c1e0bbf7 (patch)
tree95550ab8f4a12e0562084801da1d6e6a761079d3 /drivers/media/video/cx18/cx18-io.c
parent8182ff69f8675fc1847a399be4eea5e8118a8dd3 (diff)
V4L/DVB (9475): cx18: Disable write retries for registers that always change - part 1.
cx18: Disable write retries for registers that always change - part 1. Interrupt related registers will likely not read back the value we just wrote. Disable retries for these registers for now to avoid accidently discarding interrupts. More intelligent read back verification criteria are needed for these and other registers (e.g. GPIO line registers), which will be addressed in subsequent changes. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-io.c')
-rw-r--r--drivers/media/video/cx18/cx18-io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/cx18/cx18-io.c b/drivers/media/video/cx18/cx18-io.c
index 700ab9439c16..31be5e8684dc 100644
--- a/drivers/media/video/cx18/cx18-io.c
+++ b/drivers/media/video/cx18/cx18-io.c
@@ -218,7 +218,7 @@ void cx18_memset_io(struct cx18 *cx, void __iomem *addr, int val, size_t count)
218void cx18_sw1_irq_enable(struct cx18 *cx, u32 val) 218void cx18_sw1_irq_enable(struct cx18 *cx, u32 val)
219{ 219{
220 u32 r; 220 u32 r;
221 cx18_write_reg(cx, val, SW1_INT_STATUS); 221 cx18_write_reg_noretry(cx, val, SW1_INT_STATUS);
222 r = cx18_read_reg(cx, SW1_INT_ENABLE_PCI); 222 r = cx18_read_reg(cx, SW1_INT_ENABLE_PCI);
223 cx18_write_reg(cx, r | val, SW1_INT_ENABLE_PCI); 223 cx18_write_reg(cx, r | val, SW1_INT_ENABLE_PCI);
224} 224}
@@ -233,7 +233,7 @@ void cx18_sw1_irq_disable(struct cx18 *cx, u32 val)
233void cx18_sw2_irq_enable(struct cx18 *cx, u32 val) 233void cx18_sw2_irq_enable(struct cx18 *cx, u32 val)
234{ 234{
235 u32 r; 235 u32 r;
236 cx18_write_reg(cx, val, SW2_INT_STATUS); 236 cx18_write_reg_noretry(cx, val, SW2_INT_STATUS);
237 r = cx18_read_reg(cx, SW2_INT_ENABLE_PCI); 237 r = cx18_read_reg(cx, SW2_INT_ENABLE_PCI);
238 cx18_write_reg(cx, r | val, SW2_INT_ENABLE_PCI); 238 cx18_write_reg(cx, r | val, SW2_INT_ENABLE_PCI);
239} 239}