We just had some trouble reading from the /dev/ttyRPMSG from a program. It always crashed after some messages. In the end we noticed that the “echo” option of the tty driver was the issue. Might I ask what speaks against just disabling it as default? Something like this should do the job or not?
rpmsgtty_driver->init_termios = tty_std_termios; rpmsgtty_driver->init_termios = rpmsgtty_driver->init_termios.c_lflag & ~ECHO;