Skip to content

Commit 58853df

Browse files
committed
Revert "serial: 8250: properly set mctrl for prescaler"
This reverts commit 84fa133. Signed-off-by: Chaitanya Vadrevu <chaitanya.vadrevu@emerson.com>
1 parent 0bd6d36 commit 58853df

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/tty/serial/8250/8250_ni.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,8 @@ static u8 ni16550_read_fifo_size(struct uart_8250_port *uart, int reg)
268268

269269
static void ni16550_set_mctrl(struct uart_port *port, unsigned int mctrl)
270270
{
271-
struct uart_8250_port *up = up_to_u8250p(port);
271+
mctrl |= UART_MCR_CLKSEL;
272272

273-
up->mcr |= UART_MCR_CLKSEL;
274273
serial8250_do_set_mctrl(port, mctrl);
275274
}
276275

0 commit comments

Comments
 (0)