RE: [PATCH v7 tty-next 2/4] serial: 8250_pci1xxxx: Add driver for quad-uart support

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

 



> From: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> Sent: Thursday, December 8, 2022 1:31 AM
> To: Kumaravel Thiagarajan - I21417
> <Kumaravel.Thiagarajan@xxxxxxxxxxxxx>
> Subject: Re: [PATCH v7 tty-next 2/4] serial: 8250_pci1xxxx: Add driver for
> quad-uart support
> 
> > +     priv->membase = pcim_iomap(pdev, 0, 0);
> 
> Is any of those card can have an IO bar (instead of MEM)?

No Andy

> > +     if (num_vectors == 4)
> > +             writeb(UART_PCI_CTRL_SET_MULTIPLE_MSI,
> > +                    priv->membase + UART_PCI_CTRL_REG);
> 
> If you set this unconditionally when num_vectors < 4, would it still work?

UART_PCI_CTRL_SET_MULTIPLE_MSI must be set only when all the requested interrupt vectors    
are allocated by the pci_alloc_irq_vectors API. Number of interrupt vectors requested was always
4 previously and that logic will be modified to request only which is required in V8 patch. 


Thanks,
Tharun Kumar P




[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