* UART not generating MSR-change (or any) interrupt
@ 2002-06-24 19:37 Ulrich Hertlein
2002-06-25 13:01 ` Stuart MacDonald
0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Hertlein @ 2002-06-24 19:37 UTC (permalink / raw)
To: linux-serial
Hi all,
this is my first post to this mailing list so please excuse any breach of
protocol or such.
I'm currently developing an Input Device (Joystick) module for a R/C
transmitter (such as used to model aircraft) interface. This little piece of
hardware connects to a serial port and changes the RI line according to a
pulse-width modulation pattern. The pulses vary in length from about 0.3 ms
to around 1.7 ms. In order to minimize system load I want to implement an
interrupt handler to handle changes of the modem-status register.
The module code currently sets up the input device stuff and initializes the
UART of the requested port. For I/O base and IRQ 'setserial' reports the
expected standard values (COM1=0x3f8,IRQ=4 COM2=0x2f8,IRQ=3 ...) and I'm
using those to setup the UART ('setserial' reports a 16550A) and do a
'request_irq'. The UART setup follows 'serial.c' pretty closely, except for
not setting a baud rate. The module inserts and initializes fine and I can
see a new joystick device using a small SDL test program.
But the interrupt handler never is called, even if I tell the UART to generate
other interrupts as well, such as UART_IER_MSI | UART_IER_RLSI |
UART_IER_RDI. '/proc/stat' also shows no interrupts being generated on
IRQ=3,COM2.
A small test program using user-land 'ioctl' to either poll the MSR or wait
for changes using 'TIOCMIWAIT' also show no activity on the RI line. But I
know it's there since another user-land program that polls the MSR using
'inb' show the expected wave pattern.
Does anyone have an idea what is going on? Tell me if you need additional
information about anything. I'm running linux-2.4.19 on a Soyo K7V Dragon+
board with 1.2 GHz AMD Duron CPU.
Thanks in advance,
-Ulrich
--
Ulrich Hertlein ... u.hertlein <at> sandbox <dot> in-berlin <dot> de
"Writing software is more fun than working."
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: UART not generating MSR-change (or any) interrupt
2002-06-24 19:37 UART not generating MSR-change (or any) interrupt Ulrich Hertlein
@ 2002-06-25 13:01 ` Stuart MacDonald
0 siblings, 0 replies; 2+ messages in thread
From: Stuart MacDonald @ 2002-06-25 13:01 UTC (permalink / raw)
To: Ulrich Hertlein, linux-serial
From: "Ulrich Hertlein" <u.hertlein@sandbox.in-berlin.de>
> UART of the requested port. For I/O base and IRQ 'setserial' reports the
> expected standard values (COM1=0x3f8,IRQ=4 COM2=0x2f8,IRQ=3 ...) and I'm
[snip]
> IRQ=3,COM2.
Motherboard serial ports are generally still handled as ISA devices;
they cannot share interrupts. I suspect that your uart is generating
interrupts that are getting caught by the serial driver, which is
ignoring them since it doesn't know about your hardware. Try
# setserial uart none /dev/ttyS1
(synatx may be off slightly), to remove the conflict.
..Stu
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-06-25 13:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-24 19:37 UART not generating MSR-change (or any) interrupt Ulrich Hertlein
2002-06-25 13:01 ` Stuart MacDonald
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox