From: "Theodore Y. Ts'o" <tytso@MIT.EDU>
To: Jeff Garzik <jgarzik@mandrakesoft.com>
Cc: Linus Torvalds <torvalds@transmeta.com>,
"Theodore Y. Ts'o" <tytso@MIT.EDU>,
rgooch@ras.ucalgary.ca, jgarzik@mandrakesoft.mandrakesoft.com,
dhinds@valinux.com, linux-kernel@vger.kernel.org
Subject: Re: Serial cardbus code.... for testing, please.....
Date: Sun, 10 Dec 2000 03:22:06 -0500 [thread overview]
Message-ID: <200012100822.DAA17932@tsx-prime.MIT.EDU> (raw)
In-Reply-To: Jeff Garzik's message of Sat, 09 Dec 2000 11:13:59 -0500, <3A325A47.29DE00D8@mandrakesoft.com>
Date: Sat, 09 Dec 2000 11:13:59 -0500
From: Jeff Garzik <jgarzik@mandrakesoft.com>
> Note how the "rs_interrupt()" routine _tries_ to avoid this by having a
> pass counter value, but that logic never triggers because we will loop
> forever in receive_chars(), so the rs_interrupt() counter never even gets
> to increment.
Other places in serial.c check for 0xff, which implies we can and should
do the same in the interrupt handler...
No, other places in the serial driver check for 0xff *after* setting
various registers and clearing various flags. Those various
initializations are critical before you can simply do a "bail if LSR ==
0xff" check.
It's possible (not very likely, but possible) for LSR to go into
christmas tree mode where all of the flags are set in normal operation.
So for the interrupt driver, we're going to have to do some kind of loop
based thing --- if interrupt driver receives 0xff more than some number
of times, bail.
I'm starting to think this Ositech Jack of Spades is unusual in some
way, since your (Linus) BestData card and other serial CardBus cards
sound like they work.
Well, I'm able to make the Jack of Spades work if everything is compiled
in --- although the networking side of the card seems to deadlock the
kernel if I eject and re-insert the card --- this problem doesn't show
up if I compile the epic100 driver as a module, only when it is compiled
into the kernel. However, if the 2.4 pcmcia/cardbus drivers are
compiled as modules, *all* serial cards which I've tried, CardBus and
PCMCIA, fail in mostly the same way.
If I disable the kernel PCMCIA drivers, and use the pcmcia-cs drivers
with the 2.4 kernel, they all work fine. If I use the pcmcia-cs drivers
with the 2.2 kernel, it also works fine. So starting to look like it's
a very specific set of circumstances where it doesn't work. It just
happened to be the one which I tried first, since I do like kernel
modules since it's a lot easier to debug things that way....
- Ted
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2000-12-10 8:52 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.3.96.1001003164737.31485F-100000@mandrakesoft.mandrakesoft.com>
[not found] ` <200010032248.SAA23371@tsx-prime.MIT.EDU>
[not found] ` <200010040118.e941IuF00625@vindaloo.ras.ucalgary.ca>
2000-12-08 18:05 ` tytso
2000-12-08 21:27 ` Linus Torvalds
2000-12-08 21:34 ` David Hinds
2000-12-09 5:41 ` Theodore Y. Ts'o
2000-12-09 7:41 ` Linus Torvalds
2000-12-09 16:13 ` Jeff Garzik
2000-12-10 8:22 ` Theodore Y. Ts'o [this message]
2000-12-10 16:26 ` Jeff Garzik
2000-12-10 7:07 ` Theodore Y. Ts'o
2000-12-10 16:19 ` Linus Torvalds
2000-12-10 16:24 ` Jeff Garzik
2000-12-10 16:33 ` Jeff Garzik
2000-12-10 18:32 ` Alan Cox
2000-12-09 7:48 ` Linus Torvalds
2000-12-09 13:54 ` Jens Taprogge
2000-12-09 18:13 ` Linus Torvalds
2000-12-10 7:55 ` Theodore Y. Ts'o
2000-12-11 2:57 ` Chris Wedgwood
2000-12-11 21:14 ` David Hinds
2000-12-14 21:25 ` tytso
2000-12-13 16:18 ` tytso
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=200012100822.DAA17932@tsx-prime.MIT.EDU \
--to=tytso@mit.edu \
--cc=dhinds@valinux.com \
--cc=jgarzik@mandrakesoft.com \
--cc=jgarzik@mandrakesoft.mandrakesoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rgooch@ras.ucalgary.ca \
--cc=torvalds@transmeta.com \
/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
all inboxes | Powered by JetHome®