From: Giacomo Di Ciocco <admin@nectarine.info>
To: petr.novak@i.cz
Cc: isdn4linux@listserv.isdn4linux.de
Subject: [PATCH] 2.4.23 drivers/isdn/hisax/w6692.c
Date: Tue, 23 Dec 2003 12:53:22 +0100 [thread overview]
Message-ID: <3FE82CB2.7020606@nectarine.info> (raw)
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);
> }
>
> }
reply other threads:[~2003-12-23 11:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3FE82CB2.7020606@nectarine.info \
--to=admin@nectarine.info \
--cc=isdn4linux@listserv.isdn4linux.de \
--cc=petr.novak@i.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox