Skip to content

Commit 9c0072b

Browse files
mupufgregkh
authored andcommitted
serial: 8250_pci: add support for the AX99100
This is found in popular brands such as StarTech.com or Delock, and has been a source of frustration to quite a few people, if I can trust Amazon comments complaining about Linux support via the official out-of-the-tree driver. Signed-off-by: Martin Roukala (né Peres) <[email protected]> Cc: stable <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 455ce98 commit 9c0072b

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

drivers/tty/serial/8250/8250_pci.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ struct serial_private {
137137
};
138138

139139
#define PCI_DEVICE_ID_HPE_PCI_SERIAL 0x37e
140+
#define PCIE_VENDOR_ID_ASIX 0x125B
141+
#define PCIE_DEVICE_ID_AX99100 0x9100
140142

141143
static const struct pci_device_id pci_use_msi[] = {
142144
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9900,
@@ -149,6 +151,8 @@ static const struct pci_device_id pci_use_msi[] = {
149151
0xA000, 0x1000) },
150152
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_HP_3PAR, PCI_DEVICE_ID_HPE_PCI_SERIAL,
151153
PCI_ANY_ID, PCI_ANY_ID) },
154+
{ PCI_DEVICE_SUB(PCIE_VENDOR_ID_ASIX, PCIE_DEVICE_ID_AX99100,
155+
0xA000, 0x1000) },
152156
{ }
153157
};
154158

@@ -920,6 +924,7 @@ static int pci_netmos_init(struct pci_dev *dev)
920924
case PCI_DEVICE_ID_NETMOS_9912:
921925
case PCI_DEVICE_ID_NETMOS_9922:
922926
case PCI_DEVICE_ID_NETMOS_9900:
927+
case PCIE_DEVICE_ID_AX99100:
923928
num_serial = pci_netmos_9900_numports(dev);
924929
break;
925930

@@ -2544,6 +2549,14 @@ static struct pci_serial_quirk pci_serial_quirks[] = {
25442549
.init = pci_netmos_init,
25452550
.setup = pci_netmos_9900_setup,
25462551
},
2552+
{
2553+
.vendor = PCIE_VENDOR_ID_ASIX,
2554+
.device = PCI_ANY_ID,
2555+
.subvendor = PCI_ANY_ID,
2556+
.subdevice = PCI_ANY_ID,
2557+
.init = pci_netmos_init,
2558+
.setup = pci_netmos_9900_setup,
2559+
},
25472560
/*
25482561
* EndRun Technologies
25492562
*/
@@ -6065,6 +6078,10 @@ static const struct pci_device_id serial_pci_tbl[] = {
60656078
0xA000, 0x3002,
60666079
0, 0, pbn_NETMOS9900_2s_115200 },
60676080

6081+
{ PCIE_VENDOR_ID_ASIX, PCIE_DEVICE_ID_AX99100,
6082+
0xA000, 0x1000,
6083+
0, 0, pbn_b0_1_115200 },
6084+
60686085
/*
60696086
* Best Connectivity and Rosewill PCI Multi I/O cards
60706087
*/

0 commit comments

Comments
 (0)