lkml.org 
[lkml]   [2003]   [Dec]   [23]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 23 Dec 2003 12:53:22 +0100
FromGiacomo Di Ciocco <>
Subject[PATCH] 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);
<       }
---
 >         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);
 >               }
 >               }

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:59    [from the cache]
©2003-2008