diff options
author | Andy Shevchenko <[email protected]> | 2019-08-06 12:43:20 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2019-09-04 12:43:53 +0200 |
commit | f6bbb9f531c601135a75ba96e17196c1f745c4ed (patch) | |
tree | 7d4587dbe8377fc39fa5c4d037f5d40800e010d6 | |
parent | b4d0aac23e355933e963492bd71f98a36819137a (diff) |
serial: 8250_lpss: register DMA IRQ and pool with instance ID
It is really useful not only for debugging to have an DMA IRQ line and
pool being mapped to the corresponding IP by using its instance ID.
Provide PCI device and function as instance ID for Intel Quark UART DMA.
Signed-off-by: Andy Shevchenko <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/tty/serial/8250/8250_lpss.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/8250/8250_lpss.c b/drivers/tty/serial/8250/8250_lpss.c index 0c6aa990db3d..2bb30e688433 100644 --- a/drivers/tty/serial/8250/8250_lpss.c +++ b/drivers/tty/serial/8250/8250_lpss.c @@ -170,6 +170,7 @@ static void qrk_serial_setup_dma(struct lpss8250 *lpss, struct uart_port *port) chip->pdata = &qrk_serial_dma_pdata; chip->dev = &pdev->dev; + chip->id = pdev->devfn; chip->irq = pci_irq_vector(pdev, 0); chip->regs = pci_ioremap_bar(pdev, 1); if (!chip->regs) |