Skip to content

Commit

Permalink
serial: mcf: add sysrq capability
Browse files Browse the repository at this point in the history
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 <angelo.dureghello@timesys.com>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
  • Loading branch information
Angelo Dureghello authored and Greg Ungerer committed Oct 7, 2020
1 parent 322c512 commit 9f5fd80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/tty/serial/mcf.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ static int mcf_probe(struct platform_device *pdev)
port->ops = &mcf_uart_ops;
port->flags = UPF_BOOT_AUTOCONF;
port->rs485_config = mcf_config_rs485;
port->has_sysrq = IS_ENABLED(CONFIG_SERIAL_MCF_CONSOLE);

uart_add_one_port(&mcf_driver, port);
}
Expand Down

0 comments on commit 9f5fd80

Please sign in to comment.