Commit 6d59225f authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Greg Kroah-Hartman

serial: 8250_mid: enable MSI on Denverton

Enable MSI type of interrupt if PCI BIOS supports it.
Reviewed-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4831e0d9
...@@ -164,8 +164,14 @@ static int dnv_setup(struct mid8250 *mid, struct uart_port *p) ...@@ -164,8 +164,14 @@ static int dnv_setup(struct mid8250 *mid, struct uart_port *p)
unsigned int bar = FL_GET_BASE(mid->board->flags); unsigned int bar = FL_GET_BASE(mid->board->flags);
int ret; int ret;
ret = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_ALL_TYPES);
if (ret < 0)
return ret;
p->irq = pci_irq_vector(pdev, 0);
chip->dev = &pdev->dev; chip->dev = &pdev->dev;
chip->irq = pdev->irq; chip->irq = pci_irq_vector(pdev, 0);
chip->regs = p->membase; chip->regs = p->membase;
chip->length = pci_resource_len(pdev, bar); chip->length = pci_resource_len(pdev, bar);
chip->offset = DNV_DMA_CHAN_OFFSET; chip->offset = DNV_DMA_CHAN_OFFSET;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment