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

serial: 8250: put RSA functions to their namespace

Prefix the functions with rsa_, not suffix.

This is a preparation for moving them out to 8250_rsa.c in the next
patch.

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20250611100319.186924-12-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
8725679f a1efa7f6

+9 -9
+9 -9
drivers/tty/serial/8250/8250_port.c
··· 718 718 * Attempts to turn on the RSA FIFO. Returns zero on failure. 719 719 * We set the port uart clock rate if we succeed. 720 720 */ 721 - static int __enable_rsa(struct uart_8250_port *up) 721 + static int __rsa_enable(struct uart_8250_port *up) 722 722 { 723 723 unsigned char mode; 724 724 int result; ··· 741 741 /* 742 742 * If this is an RSA port, see if we can kick it up to the higher speed clock. 743 743 */ 744 - static void enable_rsa(struct uart_8250_port *up) 744 + static void rsa_enable(struct uart_8250_port *up) 745 745 { 746 746 if (up->port.type != PORT_RSA) 747 747 return; 748 748 749 749 if (up->port.uartclk != SERIAL_RSA_BAUD_BASE * 16) { 750 750 uart_port_lock_irq(&up->port); 751 - __enable_rsa(up); 751 + __rsa_enable(up); 752 752 uart_port_unlock_irq(&up->port); 753 753 } 754 754 if (up->port.uartclk == SERIAL_RSA_BAUD_BASE * 16) ··· 760 760 * unknown why interrupts were disabled in here. However, the caller is expected to preserve this 761 761 * behaviour by grabbing the spinlock before calling this function. 762 762 */ 763 - static void disable_rsa(struct uart_8250_port *up) 763 + static void rsa_disable(struct uart_8250_port *up) 764 764 { 765 765 unsigned char mode; 766 766 int result; ··· 794 794 if (!(up->probe & UART_PROBE_RSA)) 795 795 return; 796 796 797 - if (__enable_rsa(up)) 797 + if (__rsa_enable(up)) 798 798 up->port.type = PORT_RSA; 799 799 } 800 800 ··· 806 806 serial_out(up, UART_RSA_FRR, 0); 807 807 } 808 808 #else 809 - static inline void enable_rsa(struct uart_8250_port *up) {} 810 - static inline void disable_rsa(struct uart_8250_port *up) {} 809 + static inline void rsa_enable(struct uart_8250_port *up) {} 810 + static inline void rsa_disable(struct uart_8250_port *up) {} 811 811 static inline void rsa_autoconfig(struct uart_8250_port *up) {} 812 812 static inline void rsa_reset(struct uart_8250_port *up) {} 813 813 #endif /* CONFIG_SERIAL_8250_RSA */ ··· 2268 2268 UART_DA830_PWREMU_MGMT_FREE); 2269 2269 } 2270 2270 2271 - enable_rsa(up); 2271 + rsa_enable(up); 2272 2272 2273 2273 /* 2274 2274 * Clear the FIFO buffers and disable them. ··· 2535 2535 serial_port_in(port, UART_LCR) & ~UART_LCR_SBC); 2536 2536 serial8250_clear_fifos(up); 2537 2537 2538 - disable_rsa(up); 2538 + rsa_disable(up); 2539 2539 2540 2540 /* 2541 2541 * Read data port to reset things, and then unlink from