Hi,
I have this card 'PCIE 2 Port Serial Expansion Card PCI Express' with
the WCH382 chip and everything seems to be loading ok by default on
Fedora 32 but I simply get no communication from either port. I came
across this patch submission for this hardware 4 years ago, which is the
same card as mine:
https://www.spinics.net/lists/linux-serial/msg21083.html
For a simple test I have a null modem cable connected between the 2 DB9
ports on the card. I run 2 instances of GtkTerm and set each instance
to either 115200-8-N-1 or 9600-8-N-1 on /dev/ttyS4 and /dev/ttyS5 and
just try to pass some bytes back n forth with no results.
dmesg output:
[ 3.026478] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[ 3.026540] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200)
is a 16550A
[ 3.027743] 0000:03:00.0: ttyS4 at I/O 0xe0c0 (irq = 33, base_baud =
115200) is a XR16850
[ 3.027824] 0000:03:00.0: ttyS5 at I/O 0xe0c8 (irq = 33, base_baud =
115200) is a XR16850
[nostar@iggy ~]$ sudo lspci -v -n -d 1c00:*
03:00.0 0700: 1c00:3253 (rev 10) (prog-if 05 [16850])
Subsystem: 1c00:3253
Flags: bus master, fast devsel, latency 0, IRQ 33
I/O ports at e000 [size=256]
Memory at e2100000 (32-bit, prefetchable) [size=32K]
I/O ports at e100 [size=4]
Expansion ROM at fc600000 [disabled] [size=32K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/32 Maskable+ 64bit+
Capabilities: [80] Express Legacy Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Kernel driver in use: serial
[nostar@iggy ~]$ setserial -g /dev/ttyS4
/dev/ttyS4, UART: 16850, Port: 0xe0c0, IRQ: 33
[nostar@iggy ~]$ setserial -g /dev/ttyS5
/dev/ttyS5, UART: 16850, Port: 0xe0c8, IRQ: 33
I hope someone can help determine what is wrong here, all seems a-ok.