V4L/DVB (3403): Workaround to fix initialization for Nexus CA
authorMarco Schluessler <marco@lordzodiac.de>
Fri, 24 Feb 2006 21:53:00 +0000 (18:53 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 8 Mar 2006 14:35:50 +0000 (11:35 -0300)
Workaround for Nexus CA: Debi test fails unless first debi write is repeated.

Signed-off-by: Marco Schluessler <marco@lordzodiac.de>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/ttpci/av7110_hw.c

index 3c5366d15a8aa59705b58edd2a7d871d98df80a6..75736f2fe83864bb6bf48e7204a28c6a9930e806 100644 (file)
@@ -245,6 +245,9 @@ int av7110_bootarm(struct av7110 *av7110)
 
        /* test DEBI */
        iwdebi(av7110, DEBISWAP, DPRAM_BASE, 0x76543210, 4);
+       /* FIXME: Why does Nexus CA require 2x iwdebi for first init? */
+       iwdebi(av7110, DEBISWAP, DPRAM_BASE, 0x76543210, 4);
+
        if ((ret=irdebi(av7110, DEBINOSWAP, DPRAM_BASE, 0, 4)) != 0x10325476) {
                printk(KERN_ERR "dvb-ttpci: debi test in av7110_bootarm() failed: "
                       "%08x != %08x (check your BIOS 'Plug&Play OS' settings)\n",