Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aac6c0b0 authored by Tomoya MORINAGA's avatar Tomoya MORINAGA Committed by Greg Kroah-Hartman
Browse files

pch_uart: fix uart clock setting issue



Currently, uart clock is not set correctly.
This patch fixes the issue.

Signed-off-by: default avatarTomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 23877fdc
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1089,7 +1089,12 @@ static int pch_uart_startup(struct uart_port *port)

	priv = container_of(port, struct eg20t_port, port);
	priv->tx_empty = 1;

	if (port->uartclk)
		priv->base_baud = port->uartclk;
	else
		port->uartclk = priv->base_baud;

	pch_uart_hal_disable_interrupt(priv, PCH_UART_HAL_ALL_INT);
	ret = pch_uart_hal_set_line(priv, default_baud,
			      PCH_UART_HAL_PARITY_NONE, PCH_UART_HAL_8BIT,