Skip to content

Commit 61d6fd5

Browse files
feckertopsiff
authored andcommitted
serial: 8250_exar: add support for Advantech 2 port card with Device ID 0x0018
commit e7cbce7 upstream. 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> (cherry picked from commit a8527907f28d706368f8bef593330f8f11567c45) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent 2e32b9a commit 61d6fd5

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

drivers/tty/serial/8250/8250_exar.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
#define PCI_DEVICE_ID_ACCESSIO_COM_4SM 0x10db
3434
#define PCI_DEVICE_ID_ACCESSIO_COM_8SM 0x10ea
3535

36+
#define PCI_DEVICE_ID_ADVANTECH_XR17V352 0x0018
37+
3638
#define PCI_DEVICE_ID_COMMTECH_4224PCI335 0x0002
3739
#define PCI_DEVICE_ID_COMMTECH_4222PCI335 0x0004
3840
#define PCI_DEVICE_ID_COMMTECH_2324PCI335 0x000a
@@ -845,6 +847,12 @@ static const struct exar8250_board pbn_fastcom35x_8 = {
845847
.exit = pci_xr17v35x_exit,
846848
};
847849

850+
static const struct exar8250_board pbn_adv_XR17V352 = {
851+
.num_ports = 2,
852+
.setup = pci_xr17v35x_setup,
853+
.exit = pci_xr17v35x_exit,
854+
};
855+
848856
static const struct exar8250_board pbn_exar_XR17V4358 = {
849857
.num_ports = 12,
850858
.setup = pci_xr17v35x_setup,
@@ -914,6 +922,9 @@ static const struct pci_device_id exar_pci_tbl[] = {
914922
USR_DEVICE(XR17C152, 2980, pbn_exar_XR17C15x),
915923
USR_DEVICE(XR17C152, 2981, pbn_exar_XR17C15x),
916924

925+
/* ADVANTECH devices */
926+
EXAR_DEVICE(ADVANTECH, XR17V352, pbn_adv_XR17V352),
927+
917928
/* Exar Corp. XR17C15[248] Dual/Quad/Octal UART */
918929
EXAR_DEVICE(EXAR, XR17C152, pbn_exar_XR17C15x),
919930
EXAR_DEVICE(EXAR, XR17C154, pbn_exar_XR17C15x),

0 commit comments

Comments
 (0)