Re: R: R: R: [PATCH v1] serial: 8250_fintek: Print Fintek chip name

From: Ji-Ze Hong (Peter Hong)
Date: Tue Dec 15 2020 - 19:54:30 EST


Hi,

Flavio Suligoi 於 2020/12/15 下午 11:06 寫道:
we produce some x86 boards with multistandard RS232/422/485 ports
and, to have this feature, in some of these boards, we use a
Fintek uart or superIO.
So this additional info "extra_name" can be useful for
a quick check if the serial ports are multistandard or not,
without any other investigations, but using only a simple command
like:

dmesg| grep ttyS

But as they work the same, why does it matter?

Yes you are right, by the user point of view, they are the same.


Userspace should not care here. Isn't there some other id you can
read/query for a hardware database tool to determine this?


As Greg mentions, The userspace don't care what IC they are using.
We can use Linux RS485 API to control or check the serial port.

https://www.kernel.org/doc/html/latest/driver-api/serial/serial-rs485.html

--
With Best Regards,
Peter Hong