serial: 8250_lpss: Try to enable Memory-Write-Invalidate
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 10 Oct 2016 08:27:19 +0000 (11:27 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Oct 2016 14:27:24 +0000 (16:27 +0200)
Enable MWI mechanism if PCI bus master supports it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_lpss.c

index 353c90ea50b1313c280d0e2124c7b8d9ac90f611..ac2a34ecfd66eb84914ac6dbf1b79de87df739bf 100644 (file)
@@ -184,6 +184,7 @@ static void qrk_serial_setup_dma(struct lpss8250 *lpss, struct uart_port *port)
                return;
 
        pci_set_master(pdev);
+       pci_try_set_mwi(pdev);
 
        /* Special DMA address for UART */
        dma->rx_dma_addr = 0xfffff000;