Skip to content

Commit 1b91d97

Browse files
andy-shevgregkh
authored andcommitted
serial: 8250_lpss: Add ->setup() for Elkhart Lake ports
The ->setup() callback is mandatory for the devices. Provide it for Elkhart Lake UART ports. Note, for time being it's empty, but in the future it might require an additional configuration such as DMA. Reported-by: Raymond Tan <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e32a83c commit 1b91d97

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ static int byt_serial_setup(struct lpss8250 *lpss, struct uart_port *port)
156156
return 0;
157157
}
158158

159+
static int ehl_serial_setup(struct lpss8250 *lpss, struct uart_port *port)
160+
{
161+
return 0;
162+
}
163+
159164
#ifdef CONFIG_SERIAL_8250_DMA
160165
static const struct dw_dma_platform_data qrk_serial_dma_pdata = {
161166
.nr_channels = 2,
@@ -356,6 +361,7 @@ static const struct lpss8250_board byt_board = {
356361
static const struct lpss8250_board ehl_board = {
357362
.freq = 200000000,
358363
.base_baud = 12500000,
364+
.setup = ehl_serial_setup,
359365
};
360366

361367
static const struct lpss8250_board qrk_board = {

0 commit comments

Comments
 (0)