diff options
Diffstat (limited to 'drivers/tty/serial/8250/8250_pci.c')
| -rw-r--r-- | drivers/tty/serial/8250/8250_pci.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index da2b0b0a183f..858dca865d6a 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c | |||
| @@ -1096,7 +1096,7 @@ static int kt_serial_setup(struct serial_private *priv, | |||
| 1096 | const struct pciserial_board *board, | 1096 | const struct pciserial_board *board, |
| 1097 | struct uart_port *port, int idx) | 1097 | struct uart_port *port, int idx) |
| 1098 | { | 1098 | { |
| 1099 | port->flags |= UPF_IIR_ONCE; | 1099 | port->flags |= UPF_BUG_THRE; |
| 1100 | return skip_tx_en_setup(priv, board, port, idx); | 1100 | return skip_tx_en_setup(priv, board, port, idx); |
| 1101 | } | 1101 | } |
| 1102 | 1102 | ||
| @@ -1118,18 +1118,6 @@ pci_xr17c154_setup(struct serial_private *priv, | |||
| 1118 | return pci_default_setup(priv, board, port, idx); | 1118 | return pci_default_setup(priv, board, port, idx); |
| 1119 | } | 1119 | } |
| 1120 | 1120 | ||
| 1121 | static int try_enable_msi(struct pci_dev *dev) | ||
| 1122 | { | ||
| 1123 | /* use msi if available, but fallback to legacy otherwise */ | ||
| 1124 | pci_enable_msi(dev); | ||
| 1125 | return 0; | ||
| 1126 | } | ||
| 1127 | |||
| 1128 | static void disable_msi(struct pci_dev *dev) | ||
| 1129 | { | ||
| 1130 | pci_disable_msi(dev); | ||
| 1131 | } | ||
| 1132 | |||
| 1133 | #define PCI_VENDOR_ID_SBSMODULARIO 0x124B | 1121 | #define PCI_VENDOR_ID_SBSMODULARIO 0x124B |
| 1134 | #define PCI_SUBVENDOR_ID_SBSMODULARIO 0x124B | 1122 | #define PCI_SUBVENDOR_ID_SBSMODULARIO 0x124B |
| 1135 | #define PCI_DEVICE_ID_OCTPRO 0x0001 | 1123 | #define PCI_DEVICE_ID_OCTPRO 0x0001 |
| @@ -1249,9 +1237,7 @@ static struct pci_serial_quirk pci_serial_quirks[] __refdata = { | |||
| 1249 | .device = PCI_DEVICE_ID_INTEL_PATSBURG_KT, | 1237 | .device = PCI_DEVICE_ID_INTEL_PATSBURG_KT, |
| 1250 | .subvendor = PCI_ANY_ID, | 1238 | .subvendor = PCI_ANY_ID, |
| 1251 | .subdevice = PCI_ANY_ID, | 1239 | .subdevice = PCI_ANY_ID, |
| 1252 | .init = try_enable_msi, | ||
| 1253 | .setup = kt_serial_setup, | 1240 | .setup = kt_serial_setup, |
| 1254 | .exit = disable_msi, | ||
| 1255 | }, | 1241 | }, |
| 1256 | /* | 1242 | /* |
| 1257 | * ITE | 1243 | * ITE |
