Skip to contentSkip to conversation

2.4.23 drivers/isdn/hisax/w6692.c

PATCH New Giacomo Di Ciocco 1 participant 1 message Dec 23, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.4.23 drivers/isdn/hisax/w6692.c

Hi all,
i'am having a problem with this isdn card, sometimes, when the connection is working hard i get the message "W6692 IRQ LOOP"
and the isdn system gets blocked, i have to reboot the box to get it to work again (statically compiled driver).
I take a look to the driver's source and i found the reset procedure used in this case is a lot different from the procedure used in the function resetW6692 so, without too much knowledge of kernel programming nor C, i've copied the code from the resetW6692 function to this point and i got it working.

00:0a.0 Network controller: Dynalink IS64PH ISDN Adapter
Subsystem: Winbond Electronics Corp: Unknown device 6692
Flags: medium devsel, IRQ 11
Memory at ffbce000 (32-bit, non-prefetchable) [size=4K] I/O ports at f800 [size=256]

562,565c562,582
< if (!icnt) {
< printk(KERN_WARNING "W6692 IRQ LOOP\n");
< cs->writeW6692(cs, W_IMASK, 0xff);
< }
---

Quoted 20 lines
        if (!icnt) {
              printk(KERN_WARNING "W6692 IRQ LOOP\n");
              cs->writeW6692(cs, W_D_CTL, W_D_CTL_SRST);
              cs->writeW6692(cs, W_D_CTL, 0x00);
              cs->writeW6692(cs, W_IMASK, 0xff);
              cs->writeW6692(cs, W_D_SAM, 0xff);
              cs->writeW6692(cs, W_D_TAM, 0xff);
              cs->writeW6692(cs, W_D_EXIM, 0x00);
              cs->writeW6692(cs, W_D_MODE, W_D_MODE_RACT);
              cs->writeW6692(cs, W_IMASK, 0x18);
              if (cs->subtyp == W6692_USR) {
                      /* seems that USR implemented some power control features
                        * Pin 79 is connected to the oscilator circuit so we
                       * have to handle it here
                       */
                      cs->writeW6692(cs, W_PCTL, 0x80);
                      cs->writeW6692(cs, W_XDATA, 0x00);
              }

              }