serial: 8250_exar: add support for Advantech 2 port card with Device ID 0x0018

The Advantech 2-port serial card with PCI vendor=0x13fe and device=0x0018
has a 'XR17V35X' chip installed on the circuit board. Therefore, this
driver can be used instead of theu outdated out-of-tree driver from the
manufacturer.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Cc: stable <stable@kernel.org>
Link: https://patch.msgid.link/20250924134115.2667650-1-fe@dev.tdt.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by Florian Eckert and committed by Greg Kroah-Hartman e7cbce76 ef8fef45

+11
+11
drivers/tty/serial/8250/8250_exar.c
··· 40 40 #define PCI_DEVICE_ID_ACCESSIO_COM_4SM 0x10db 41 41 #define PCI_DEVICE_ID_ACCESSIO_COM_8SM 0x10ea 42 42 43 + #define PCI_DEVICE_ID_ADVANTECH_XR17V352 0x0018 44 + 43 45 #define PCI_DEVICE_ID_COMMTECH_4224PCI335 0x0002 44 46 #define PCI_DEVICE_ID_COMMTECH_4222PCI335 0x0004 45 47 #define PCI_DEVICE_ID_COMMTECH_2324PCI335 0x000a ··· 1624 1622 .exit = pci_xr17v35x_exit, 1625 1623 }; 1626 1624 1625 + static const struct exar8250_board pbn_adv_XR17V352 = { 1626 + .num_ports = 2, 1627 + .setup = pci_xr17v35x_setup, 1628 + .exit = pci_xr17v35x_exit, 1629 + }; 1630 + 1627 1631 static const struct exar8250_board pbn_exar_XR17V4358 = { 1628 1632 .num_ports = 12, 1629 1633 .setup = pci_xr17v35x_setup, ··· 1703 1695 /* USRobotics USR298x-OEM PCI Modems */ 1704 1696 USR_DEVICE(XR17C152, 2980, pbn_exar_XR17C15x), 1705 1697 USR_DEVICE(XR17C152, 2981, pbn_exar_XR17C15x), 1698 + 1699 + /* ADVANTECH devices */ 1700 + EXAR_DEVICE(ADVANTECH, XR17V352, pbn_adv_XR17V352), 1706 1701 1707 1702 /* Exar Corp. XR17C15[248] Dual/Quad/Octal UART */ 1708 1703 EXAR_DEVICE(EXAR, XR17C152, pbn_exar_XR17C15x),