Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1552355
| From | Andy Shevchenko <andy.shevchenko@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] serial: 8250_lpss: Unconditionally set PCI master for Quark |
| Date | 2017-01-05 23:00 +0100 |
| Message-ID | <sWoeJ-ic-1@gated-at.bofh.it> (permalink) |
| References | <sW0Fs-1jk-41@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Jan 4, 2017 at 10:48 PM, Jan Kiszka <jan.kiszka@siemens.com> wrote:
> MSI needs it as well.
>
> Should have no practical impact, though, as DMA is always available on
> the Quark. But given the few users of pci_alloc_irq_vectors so far, this
> incorrect pattern may spread otherwise.
>
One question below.
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
> Fixes: 3f3a46951e02 ("serial: 8250_lpss: set PCI master only for private DMA")
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
> drivers/tty/serial/8250/8250_lpss.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/tty/serial/8250/8250_lpss.c b/drivers/tty/serial/8250/8250_lpss.c
> index f09f68a..9315197 100644
> --- a/drivers/tty/serial/8250/8250_lpss.c
> +++ b/drivers/tty/serial/8250/8250_lpss.c
> @@ -183,7 +183,6 @@ static void qrk_serial_setup_dma(struct lpss8250 *lpss, struct uart_port *port)
> if (ret)
> return;
>
> - pci_set_master(pdev);
> pci_try_set_mwi(pdev);
Does it make sense to move MWI there as well?
>
> /* Special DMA address for UART */
> @@ -216,6 +215,8 @@ static int qrk_serial_setup(struct lpss8250 *lpss, struct uart_port *port)
> struct pci_dev *pdev = to_pci_dev(port->dev);
> int ret;
>
> + pci_set_master(pdev);
> +
> ret = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_ALL_TYPES);
> if (ret < 0)
> return ret;
> --
> 2.1.4
--
With Best Regards,
Andy Shevchenko
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] serial: 8250_lpss: Unconditionally set PCI master for Quark Jan Kiszka <jan.kiszka@siemens.com> - 2017-01-04 21:50 +0100
Re: [PATCH] serial: 8250_lpss: Unconditionally set PCI master for Quark Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-01-05 01:10 +0100
Re: [PATCH] serial: 8250_lpss: Unconditionally set PCI master for Quark Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-01-05 23:00 +0100
Re: [PATCH] serial: 8250_lpss: Unconditionally set PCI master for Quark Jan Kiszka <jan.kiszka@siemens.com> - 2017-01-09 18:20 +0100
Re: [PATCH] serial: 8250_lpss: Unconditionally set PCI master for Quark Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-01-10 00:30 +0100
Re: [PATCH] serial: 8250_lpss: Unconditionally set PCI master for Quark Jan Kiszka <jan.kiszka@siemens.com> - 2017-01-10 08:00 +0100
Re: [PATCH] serial: 8250_lpss: Unconditionally set PCI master for Quark Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-01-05 23:00 +0100
Re: [PATCH] serial: 8250_lpss: Unconditionally set PCI master for Quark Jan Kiszka <jan.kiszka@siemens.com> - 2017-01-09 18:10 +0100
Re: [PATCH] serial: 8250_lpss: Unconditionally set PCI master for Quark Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-01-10 13:10 +0100
csiph-web