This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit be66d395521405fd890bba75dae4526775940ed7 Author: Maarten Zanders <[email protected]> AuthorDate: Wed Feb 18 16:52:20 2026 +0100 serial/uart_rpmsg: use config option for console registration Parameter isconsole in uart_rpmsg_init() has two effects: set uart terminal flags for typical console use and register the device as /dev/console. These are separate things. The latter might not be wanted in all cases. Use the already existing config option CONFIG_RPMSG_UART_CONSOLE to conditionally register the uart as console device. Signed-off-by: Maarten Zanders <[email protected]> --- drivers/serial/uart_rpmsg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/serial/uart_rpmsg.c b/drivers/serial/uart_rpmsg.c index 2fc7d273f38..12205c232af 100644 --- a/drivers/serial/uart_rpmsg.c +++ b/drivers/serial/uart_rpmsg.c @@ -458,10 +458,12 @@ int uart_rpmsg_init(FAR const char *cpuname, FAR const char *devname, UART_RPMSG_DEV_PREFIX, devname); uart_register(name, dev); + #ifdef CONFIG_RPMSG_UART_CONSOLE if (dev->isconsole) { uart_register(UART_RPMSG_DEV_CONSOLE, dev); } + #endif return 0; }
