On Thu, Dec 21, 2000 at 01:55:04PM -0600, Luiz Magalhaes wrote:
> Hi,
>
> This is the old problem of ttyS1 sharing the address with SIR base. Run a
>
> setserial /dev/ttyS1 uart none
>
> and it will work.
This is incomplete - There is a "bug" in the serial driver which might
cause the irda to stop afterwards if you ever will reuse the "/dev/ttyS1"
major minor. The serial driver stores the port and irq and as soon
as you e.g. insert a pcmcia modem using /dev/ttyS1 it will try
to free up the resources still known and first stop the serial.
This is definitly a bug in the serial driver which accesses hardware
(io ports) which it doesnt claim any more to be reserved for the serial driver.
If you have a pcmcia modem card try the following.
Boot
setserial /dev/ttyS1 uart none
modprobe <your irda module - nsc-ircc for me>
ifconfig irda0 up
<Use Irda>
<Insert PCMCIA Modem>
<PCMCIA Card Services will assign lowest ttySn device -> ttyS1>
<Use Irda (if you can)>
I have seen this on my ThinkPad 390E (Kernel 2.2.14-2.2.18). With
SERIAL_DEBUG_OPEN - You can see the serial driver access the ports of
ttyS1 long after doing the setserial. To avoid this one can do:
setserial /dev/ttyS1 uart none port 0x0 irq 0
I CC this to Ted - Probably he has got an idea - I had a small look at
serial.c but i seen not to be able to understand whats going on there.
One would expect "uart none" to completely free the resource and never
touch them again.
Flo
--
Florian Lohoff [EMAIL PROTECTED] +49-5201-669912
Why is it called "common sense" when nobody seems to have any?
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda