Skip to content

Commit 0bd9be0

Browse files
feckertgregkh
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 <[email protected]> Cc: stable <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d50a923 commit 0bd9be0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
#define PCI_DEVICE_ID_ACCESSIO_COM_4SM 0x10db
4040
#define PCI_DEVICE_ID_ACCESSIO_COM_8SM 0x10ea
4141

42+
#define PCI_DEVICE_ID_ADVANTECH_XR17V352 0x0018
43+
4244
#define PCI_DEVICE_ID_COMMTECH_4224PCI335 0x0002
4345
#define PCI_DEVICE_ID_COMMTECH_4222PCI335 0x0004
4446
#define PCI_DEVICE_ID_COMMTECH_2324PCI335 0x000a
@@ -1678,6 +1680,12 @@ static const struct exar8250_board pbn_fastcom35x_8 = {
16781680
.exit = pci_xr17v35x_exit,
16791681
};
16801682

1683+
static const struct exar8250_board pbn_adv_XR17V352 = {
1684+
.num_ports = 2,
1685+
.setup = pci_xr17v35x_setup,
1686+
.exit = pci_xr17v35x_exit,
1687+
};
1688+
16811689
static const struct exar8250_board pbn_exar_XR17V4358 = {
16821690
.num_ports = 12,
16831691
.setup = pci_xr17v35x_setup,
@@ -1752,6 +1760,9 @@ static const struct pci_device_id exar_pci_tbl[] = {
17521760
USR_DEVICE(XR17C152, 2980, pbn_exar_XR17C15x),
17531761
USR_DEVICE(XR17C152, 2981, pbn_exar_XR17C15x),
17541762

1763+
/* ADVANTECH devices */
1764+
EXAR_DEVICE(ADVANTECH, XR17V352, pbn_adv_XR17V352),
1765+
17551766
/* Exar Corp. XR17C15[248] Dual/Quad/Octal UART */
17561767
EXAR_DEVICE(EXAR, XR17C152, pbn_exar_XR17C15x),
17571768
EXAR_DEVICE(EXAR, XR17C154, pbn_exar_XR17C15x),

0 commit comments

Comments
 (0)