TIOCSERGETLSR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have noticed difference in return "value" of ioctl(port,
TIOCSERGETLSR, &value) between different chips(hardware).
Kernel is Linux version 2.6.20.4 (root@xxxxxxxxxxxxxxxxxxxxxxxxxxxx)
(gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP
PREEMPT Fri Apr 6 13:41:02 CEST 2007 (build from source)
My mobo is from recent date and has an on-board serial port (ttyS0).
An extra PCI board with 2 serial ports is added:
07:00.0 Serial controller: NetMos Technology PCI 9835 Multi-I/O Controller (rev
01) (prog-if 02 [16550])
       Subsystem: LSI Logic / Symbios Logic 2S (16C550 UART)
       Flags: medium devsel, IRQ 21
       I/O ports at 1030 [size=8]
       I/O ports at 1028 [size=8]
       I/O ports at 1020 [size=8]
       I/O ports at 1018 [size=8]
       I/O ports at 1010 [size=8]
       I/O ports at 1000 [size=16]

My application uses a simplex modem connection over the low-speed
serial port, therefore I need to know for sure that all chararcters
have been written out before changing over from xmit to receive. I use
the TIOCSERGETLSR to check if this is the case. My problem is that for
the on board serial port the ioctl returns that situation OK but it is
wrong for the 9835 ports. There the TIOCSERGETLSR returns empty almost
after the first/second character is written which is not correct
(verified with scope). It may be a bug in the 9835 controller.  Do
others have similar findings?

please CC me as I am not on the list

Kees
-
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux