kernel 6.8 and checking serial ports - failure to match driver name

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

 



i'm having a problem with the 6.8 kernel, the driver associated with ttySxx ports is not named serial8250 any more. put simply:

pre-6.8 kernel:
/sys/class/tty/ttySxx/device/driver resolves to /sys/bus/platform/drivers/serial8250

6.8 kernel:
/sys/class/tty/ttySxx/device/driver resolves to /sys/bus/serial-base/drivers/port
 
previously i had used the driver name being "serial8250" to make a decision on how to determine if a serial port needed to be queried with a TIOCGSERIAL ioctl call to find out if it was associated with real hardware; if the name was NOT "serial8250" then the serial port was assumed to exist, but if the driver name was "serial8250" then an TIOCGSERIAL ioctl call needed to be made and the decision made on the basis of the returned 'type' (offset 0) being non-zero.

with the change in name from "serial8250" to "port" this no longer works. i am loathe to go ahead and make the decision based upon the name being "port" in case deeper changes have been made in the kernel. can anyone point me in the direction of the right person to ask about this?

cheers,
rob   :-)





[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