Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <jerry.hoemann@hpe.com>
Signed-off-by: Randy Wright <rwright@hpe.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/1621009614-28836-1-git-send-email-rwright@hpe.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Randy Wright and committed by
Greg Kroah-Hartman
e0e24208 31fae7c8

+18
+18
drivers/tty/serial/8250/8250_pci.c
··· 56 56 int line[]; 57 57 }; 58 58 59 + #define PCI_DEVICE_ID_HPE_PCI_SERIAL 0x37e 60 + 59 61 static const struct pci_device_id pci_use_msi[] = { 60 62 { PCI_DEVICE_SUB(PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9900, 61 63 0xA000, 0x1000) }, ··· 65 63 0xA000, 0x1000) }, 66 64 { PCI_DEVICE_SUB(PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9922, 67 65 0xA000, 0x1000) }, 66 + { PCI_DEVICE_SUB(PCI_VENDOR_ID_HP_3PAR, PCI_DEVICE_ID_HPE_PCI_SERIAL, 67 + PCI_ANY_ID, PCI_ANY_ID) }, 68 68 { } 69 69 }; 70 70 ··· 1999 1995 .subvendor = PCI_ANY_ID, 2000 1996 .subdevice = PCI_ANY_ID, 2001 1997 .init = pci_hp_diva_init, 1998 + .setup = pci_hp_diva_setup, 1999 + }, 2000 + /* 2001 + * HPE PCI serial device 2002 + */ 2003 + { 2004 + .vendor = PCI_VENDOR_ID_HP_3PAR, 2005 + .device = PCI_DEVICE_ID_HPE_PCI_SERIAL, 2006 + .subvendor = PCI_ANY_ID, 2007 + .subdevice = PCI_ANY_ID, 2002 2008 .setup = pci_hp_diva_setup, 2003 2009 }, 2004 2010 /* ··· 4987 4973 { PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_DIVA_AUX, 4988 4974 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 4989 4975 pbn_b2_1_115200 }, 4976 + /* HPE PCI serial device */ 4977 + { PCI_VENDOR_ID_HP_3PAR, PCI_DEVICE_ID_HPE_PCI_SERIAL, 4978 + PCI_ANY_ID, PCI_ANY_ID, 0, 0, 4979 + pbn_b1_1_115200 }, 4990 4980 4991 4981 { PCI_VENDOR_ID_DCI, PCI_DEVICE_ID_DCI_PCCOM2, 4992 4982 PCI_ANY_ID, PCI_ANY_ID, 0, 0,