Skip to content

Commit 60a9244

Browse files
andy-shevgregkh
authored andcommitted
serial: 8250_lpss: enable MSI for Intel Quark
Intel Quark SoC supports MSI for LPSS, in particular for UART. Enable MSI for Intel Quark. Signed-off-by: Andy Shevchenko <[email protected]> Tested-by: Bryan O'Donoghue <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6bb5d75 commit 60a9244

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,20 @@ static int byt_serial_setup(struct lpss8250 *lpss, struct uart_port *port)
151151
return 0;
152152
}
153153

154+
static int qrk_serial_setup(struct lpss8250 *lpss, struct uart_port *port)
155+
{
156+
struct pci_dev *pdev = to_pci_dev(port->dev);
157+
int ret;
158+
159+
ret = pci_alloc_irq_vectors(pdev, 1, 1, 0);
160+
if (ret < 0)
161+
return ret;
162+
163+
port->irq = pci_irq_vector(pdev, 0);
164+
165+
return 0;
166+
}
167+
154168
static bool lpss8250_dma_filter(struct dma_chan *chan, void *param)
155169
{
156170
struct dw_dma_slave *dws = param;
@@ -261,6 +275,7 @@ static const struct lpss8250_board byt_board = {
261275
static const struct lpss8250_board qrk_board = {
262276
.freq = 44236800,
263277
.base_baud = 2764800,
278+
.setup = qrk_serial_setup,
264279
};
265280

266281
#define LPSS_DEVICE(id, board) { PCI_VDEVICE(INTEL, id), (kernel_ulong_t)&board }

0 commit comments

Comments
 (0)