Skip to content

Commit e7cbce7

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

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
@@ -40,6 +40,8 @@
4040
#define PCI_DEVICE_ID_ACCESSIO_COM_4SM 0x10db
4141
#define PCI_DEVICE_ID_ACCESSIO_COM_8SM 0x10ea
4242

43+
#define PCI_DEVICE_ID_ADVANTECH_XR17V352 0x0018
44+
4345
#define PCI_DEVICE_ID_COMMTECH_4224PCI335 0x0002
4446
#define PCI_DEVICE_ID_COMMTECH_4222PCI335 0x0004
4547
#define PCI_DEVICE_ID_COMMTECH_2324PCI335 0x000a
@@ -1622,6 +1624,12 @@ static const struct exar8250_board pbn_fastcom35x_8 = {
16221624
.exit = pci_xr17v35x_exit,
16231625
};
16241626

1627+
static const struct exar8250_board pbn_adv_XR17V352 = {
1628+
.num_ports = 2,
1629+
.setup = pci_xr17v35x_setup,
1630+
.exit = pci_xr17v35x_exit,
1631+
};
1632+
16251633
static const struct exar8250_board pbn_exar_XR17V4358 = {
16261634
.num_ports = 12,
16271635
.setup = pci_xr17v35x_setup,
@@ -1696,6 +1704,9 @@ static const struct pci_device_id exar_pci_tbl[] = {
16961704
USR_DEVICE(XR17C152, 2980, pbn_exar_XR17C15x),
16971705
USR_DEVICE(XR17C152, 2981, pbn_exar_XR17C15x),
16981706

1707+
/* ADVANTECH devices */
1708+
EXAR_DEVICE(ADVANTECH, XR17V352, pbn_adv_XR17V352),
1709+
16991710
/* Exar Corp. XR17C15[248] Dual/Quad/Octal UART */
17001711
EXAR_DEVICE(EXAR, XR17C152, pbn_exar_XR17C15x),
17011712
EXAR_DEVICE(EXAR, XR17C154, pbn_exar_XR17C15x),

0 commit comments

Comments
 (0)