Ian Soboroff <[EMAIL PROTECTED]> writes:

> i think the major problem is that nsc-ircc is failing in
> nsc_ircc_setup on the chip version check... does anyone else have this
> problem?  is this check really important?

Hi,

You can always try to fix the code yourself. You'll just have to add the
code shown with the + signs (but you should not add the + itself). Then you
can do: "make modules && make modules_install" from /usr/src/linux and try
again. If it now works for you, then I'll fix the code.

The docs from NSC sais that: "when read, the module identification register
returns the module revision. The returned value is 2Xh". So this is a bit
suspicious.

static int nsc_ircc_setup(chipio_t *info)
{
        int version;
        int iobase = info->fir_base;

        /* Read the Module ID */
        switch_bank(iobase, BANK3);
        version = inb(iobase+MID);
+#if 0
        /* Should be 0x2? */
        if (0x20 != (version & 0xf0)) {
                ERROR("%s, Wrong chip version %02x\n", driver_name, version);
                return -1;
        }
+endif
        MESSAGE("%s, Found chip at base=0x%03x\n", driver_name, 
                info->cfg_base);

        /* Switch to advanced mode */
        switch_bank(iobase, BANK2);
        outb(ECR1_EXT_SL, iobase+ECR1);
        switch_bank(iobase, BANK0);
        

-- 
   / Dag Brattli                   | The Linux-IrDA Project               /
  // University of Tromsoe, Norway | Infrared communication for Linux    //
 /// http://www.cs.uit.no/~dagb    | http://www.cs.uit.no/linux-irda/   ///

_______________________________________________
Linux-IrDA mailing list  -  [EMAIL PROTECTED]
http://www4.pasta.cs.UiT.No/mailman/listinfo/linux-irda

Reply via email to