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

Configure Feed

Select the types of activity you want to include in your feed.

serial: 8250: move skip_txen_test to core

8250_core is the only place where skip_txen_test is used. And platform
and core end up in 8250.ko, so there is no change in module name (param
prefix). Therefore, move skip_txen_test there and make it local.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://patch.msgid.link/20251119092457.826789-5-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
9b225963 37d55c92

+4 -6
-1
drivers/tty/serial/8250/8250.h
··· 105 105 #endif 106 106 107 107 extern unsigned int share_irqs; 108 - extern unsigned int skip_txen_test; 109 108 110 109 #define SERIAL8250_PORT_FLAGS(_base, _irq, _flags) \ 111 110 { \
+4
drivers/tty/serial/8250/8250_core.c
··· 52 52 static DEFINE_HASHTABLE(irq_lists, IRQ_HASH_BITS); 53 53 static DEFINE_MUTEX(hash_mutex); /* Used to walk the hash */ 54 54 55 + static bool skip_txen_test; 56 + module_param(skip_txen_test, bool, 0644); 57 + MODULE_PARM_DESC(skip_txen_test, "Skip checking for the TXEN bug at init time"); 58 + 55 59 /* 56 60 * This is the serial driver's interrupt routine. 57 61 *
-5
drivers/tty/serial/8250/8250_platform.c
··· 29 29 * Configuration: 30 30 * share_irqs: Whether we pass IRQF_SHARED to request_irq(). 31 31 * This option is unsafe when used on edge-triggered interrupts. 32 - * skip_txen_test: Force skip of txen test at init time. 33 32 */ 34 33 unsigned int share_irqs = SERIAL8250_SHARE_IRQS; 35 - unsigned int skip_txen_test; 36 34 37 35 unsigned int nr_uarts = CONFIG_SERIAL_8250_RUNTIME_UARTS; 38 36 ··· 383 385 384 386 module_param(nr_uarts, uint, 0644); 385 387 MODULE_PARM_DESC(nr_uarts, "Maximum number of UARTs supported. (1-" __MODULE_STRING(CONFIG_SERIAL_8250_NR_UARTS) ")"); 386 - 387 - module_param(skip_txen_test, uint, 0644); 388 - MODULE_PARM_DESC(skip_txen_test, "Skip checking for the TXEN bug at init time"); 389 388 390 389 MODULE_ALIAS_CHARDEV_MAJOR(TTY_MAJOR);