Skip to content

Commit 7cd3e9d

Browse files
jan-kiszkagregkh
authored andcommitted
serial: 8250_lpss: Unconditionally set PCI master for Quark
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. Fixes: 3f3a469 ("serial: 8250_lpss: set PCI master only for private DMA") Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 2ed2b86 commit 7cd3e9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/tty/serial/8250/8250_lpss.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ static void qrk_serial_setup_dma(struct lpss8250 *lpss, struct uart_port *port)
183183
if (ret)
184184
return;
185185

186-
pci_set_master(pdev);
187186
pci_try_set_mwi(pdev);
188187

189188
/* Special DMA address for UART */
@@ -216,6 +215,8 @@ static int qrk_serial_setup(struct lpss8250 *lpss, struct uart_port *port)
216215
struct pci_dev *pdev = to_pci_dev(port->dev);
217216
int ret;
218217

218+
pci_set_master(pdev);
219+
219220
ret = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_ALL_TYPES);
220221
if (ret < 0)
221222
return ret;

0 commit comments

Comments
 (0)