diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2017-02-08 19:09:09 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-10 17:13:26 +0300 |
commit | 172c33cb61da0df5ccbdf1a8e736c8837d165a00 (patch) | |
tree | c4970cf40db51135afffcdaf524477c0e85ef1b2 /drivers/tty | |
parent | 7e12357ed64afdc8e60d64b8f8f17d711acf950a (diff) | |
download | linux-172c33cb61da0df5ccbdf1a8e736c8837d165a00.tar.xz |
serial: exar: Enable MSI support
Use pci_alloc_irq_vectors to enable MSI when available. At least the
XR17V352 supports this.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/8250/8250_exar.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_exar.c b/drivers/tty/serial/8250/8250_exar.c index f612da326e82..b89c4ffc0486 100644 --- a/drivers/tty/serial/8250/8250_exar.c +++ b/drivers/tty/serial/8250/8250_exar.c @@ -283,10 +283,16 @@ exar_pci_probe(struct pci_dev *pcidev, const struct pci_device_id *ent) priv->board = board; + pci_set_master(pcidev); + + rc = pci_alloc_irq_vectors(pcidev, 1, 1, PCI_IRQ_ALL_TYPES); + if (rc < 0) + return rc; + memset(&uart, 0, sizeof(uart)); uart.port.flags = UPF_SKIP_TEST | UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ | UPF_EXAR_EFR; - uart.port.irq = pcidev->irq; + uart.port.irq = pci_irq_vector(pcidev, 0); uart.port.dev = &pcidev->dev; for (i = 0; i < nr_ports && i < maxnr; i++) { |