Re: [PATCH v1 7/9] serial: 8250_lpss: register DMA IRQ and pool with instance ID

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 06, 2019 at 12:43:20PM +0300, Andy Shevchenko wrote:
> 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 <andriy.shevchenko@xxxxxxxxxxxxxxx>

FWIW:

Reviewed-by: Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx>

> ---
>  drivers/tty/serial/8250/8250_lpss.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> 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)
> -- 
> 2.20.1

-- 
heikki



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux