Skip to content

Commit 4be8760

Browse files
adureghello-tsgregkh
authored andcommitted
serial: mcf: add sysrq capability
After some unsuccessful attempts to use sysrq over console, figured out that port->has_sysrq should likely be enabled, as per other architectures, this when CONFIG_SERIAL_MCF_CONSOLE is also enabled. Tested some magic sysrq commands (h, p, t, b), they works now properly. Commands works inside 5 secs after BREAK is sent, as expected. Signed-off-by: Angelo Dureghello <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f4eef22 commit 4be8760

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tty/serial/mcf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ static int mcf_probe(struct platform_device *pdev)
632632
port->ops = &mcf_uart_ops;
633633
port->flags = UPF_BOOT_AUTOCONF;
634634
port->rs485_config = mcf_config_rs485;
635+
port->has_sysrq = IS_ENABLED(CONFIG_SERIAL_MCF_CONSOLE);
635636

636637
uart_add_one_port(&mcf_driver, port);
637638
}

0 commit comments

Comments
 (0)