Skip to content

Commit e0e2420

Browse files
rfwghgregkh
authored andcommitted
serial: 8250_pci: Add support for new HPE serial device
Add support for new HPE serial device. It is MSI enabled, but otherwise similar to legacy HP server serial devices. Tested-by: Jerry Hoemann <[email protected]> Signed-off-by: Randy Wright <[email protected]> Cc: stable <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 31fae7c commit e0e2420

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,17 @@ struct serial_private {
5656
int line[];
5757
};
5858

59+
#define PCI_DEVICE_ID_HPE_PCI_SERIAL 0x37e
60+
5961
static const struct pci_device_id pci_use_msi[] = {
6062
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9900,
6163
0xA000, 0x1000) },
6264
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9912,
6365
0xA000, 0x1000) },
6466
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9922,
6567
0xA000, 0x1000) },
68+
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_HP_3PAR, PCI_DEVICE_ID_HPE_PCI_SERIAL,
69+
PCI_ANY_ID, PCI_ANY_ID) },
6670
{ }
6771
};
6872

@@ -1997,6 +2001,16 @@ static struct pci_serial_quirk pci_serial_quirks[] = {
19972001
.init = pci_hp_diva_init,
19982002
.setup = pci_hp_diva_setup,
19992003
},
2004+
/*
2005+
* HPE PCI serial device
2006+
*/
2007+
{
2008+
.vendor = PCI_VENDOR_ID_HP_3PAR,
2009+
.device = PCI_DEVICE_ID_HPE_PCI_SERIAL,
2010+
.subvendor = PCI_ANY_ID,
2011+
.subdevice = PCI_ANY_ID,
2012+
.setup = pci_hp_diva_setup,
2013+
},
20002014
/*
20012015
* Intel
20022016
*/
@@ -4973,6 +4987,10 @@ static const struct pci_device_id serial_pci_tbl[] = {
49734987
{ PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_DIVA_AUX,
49744988
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
49754989
pbn_b2_1_115200 },
4990+
/* HPE PCI serial device */
4991+
{ PCI_VENDOR_ID_HP_3PAR, PCI_DEVICE_ID_HPE_PCI_SERIAL,
4992+
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
4993+
pbn_b1_1_115200 },
49764994

49774995
{ PCI_VENDOR_ID_DCI, PCI_DEVICE_ID_DCI_PCCOM2,
49784996
PCI_ANY_ID, PCI_ANY_ID, 0, 0,

0 commit comments

Comments
 (0)