Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

serial: remove quot_frac from serial8250_do_set_divisor()

quot_frac is unused in serial8250_do_set_divisor() since commit
b2b4b8ed3c06 (serial: 8250_exar: Move custom divisor support out from
8250_port). So no point to pass it.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Cc: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20240805102046.307511-5-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
259b4620 d0009a32

+6 -6
+1 -1
drivers/tty/serial/8250/8250_dwlib.c
··· 89 89 unsigned int quot, unsigned int quot_frac) 90 90 { 91 91 dw8250_writel_ext(p, DW_UART_DLF, quot_frac); 92 - serial8250_do_set_divisor(p, baud, quot, quot_frac); 92 + serial8250_do_set_divisor(p, baud, quot); 93 93 } 94 94 95 95 void dw8250_do_set_termios(struct uart_port *p, struct ktermios *termios,
+1 -1
drivers/tty/serial/8250/8250_exar.c
··· 500 500 static void xr17v35x_set_divisor(struct uart_port *p, unsigned int baud, 501 501 unsigned int quot, unsigned int quot_frac) 502 502 { 503 - serial8250_do_set_divisor(p, baud, quot, quot_frac); 503 + serial8250_do_set_divisor(p, baud, quot); 504 504 505 505 /* Preserve bits not related to baudrate; DLD[7:4]. */ 506 506 quot_frac |= serial_port_in(p, 0x2) & 0xf0;
+1 -1
drivers/tty/serial/8250/8250_pci.c
··· 1277 1277 serial_icr_write(up, UART_TCR, tcr); 1278 1278 serial_icr_write(up, UART_CPR, cpr); 1279 1279 serial_icr_write(up, UART_CKS, cpr2); 1280 - serial8250_do_set_divisor(port, baud, quot, 0); 1280 + serial8250_do_set_divisor(port, baud, quot); 1281 1281 } 1282 1282 1283 1283 /*
+2 -2
drivers/tty/serial/8250/8250_port.c
··· 2609 2609 } 2610 2610 2611 2611 void serial8250_do_set_divisor(struct uart_port *port, unsigned int baud, 2612 - unsigned int quot, unsigned int quot_frac) 2612 + unsigned int quot) 2613 2613 { 2614 2614 struct uart_8250_port *up = up_to_u8250p(port); 2615 2615 ··· 2641 2641 if (port->set_divisor) 2642 2642 port->set_divisor(port, baud, quot, quot_frac); 2643 2643 else 2644 - serial8250_do_set_divisor(port, baud, quot, quot_frac); 2644 + serial8250_do_set_divisor(port, baud, quot); 2645 2645 } 2646 2646 2647 2647 static unsigned int serial8250_get_baud_rate(struct uart_port *port,
+1 -1
include/linux/serial_8250.h
··· 193 193 unsigned int oldstate); 194 194 void serial8250_do_set_mctrl(struct uart_port *port, unsigned int mctrl); 195 195 void serial8250_do_set_divisor(struct uart_port *port, unsigned int baud, 196 - unsigned int quot, unsigned int quot_frac); 196 + unsigned int quot); 197 197 int fsl8250_handle_irq(struct uart_port *port); 198 198 int serial8250_handle_irq(struct uart_port *port, unsigned int iir); 199 199 u16 serial8250_rx_chars(struct uart_8250_port *up, u16 lsr);