Skip to contentSkip to conversation

serial: mcf: add sysrq capability

PATCH In review Angelo Dureghello 2 participants 2 messages Oct 2, 2020 – Oct 7, 2020 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/tty/serial/mcf.c | 1 +
 1 file changed, 1 insertion(+)
drivers/tty/serial/mcf.c +1 -0
index 7dbfb4cde124..09c88c48fb7b 100644
@@ -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);
 	}
Signature · 1 line
2.28.0
Acked-by on v1 1/1
#1 lore raw

Hi Angelo,

Quoted 9 lines · Angelo Dureghello

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.

I can take this via the m68knommu git tree if no one else wants to pick it up?

Regards
Greg

Quoted 17 lines
---
  drivers/tty/serial/mcf.c | 1 +
  1 file changed, 1 insertion(+)
drivers/tty/serial/mcf.c +1 -0
index 7dbfb4cde124..09c88c48fb7b 100644
@@ -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);
  	}