qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* set qemu support serial crtscts
@ 2021-04-14  5:03 付小明
  2021-04-14 13:24 ` Peter Maydell
  0 siblings, 1 reply; 3+ messages in thread
From: 付小明 @ 2021-04-14  5:03 UTC (permalink / raw)
  To: qemu-devel


[-- Attachment #1.1: Type: text/plain, Size: 126 bytes --]

HI, I have find qemu serial not support crtscts. This result some machine not communication, because this machine need crtscts

[-- Attachment #1.2: Type: text/html, Size: 289 bytes --]

[-- Attachment #2: set_seial_crtscts.patch --]
[-- Type: application/octet-stream, Size: 465 bytes --]

diff --git "a/chardev/char-serial.c" "b/chardev/char-serial.c"
index 7c3d84ae24..40480d45e4 100644
--- "a/chardev/char-serial.c"
+++ "b/chardev/char-serial.c"
@@ -143,6 +143,7 @@ static void tty_serial_init(int fd, int speed,
     tty.c_oflag &= ~OPOST;
     tty.c_lflag &= ~(ECHO | ECHONL | ICANON | IEXTEN | ISIG);
     tty.c_cflag &= ~(CSIZE | PARENB | PARODD | CRTSCTS | CSTOPB);
+    tty.c_cflag |= CRTSCTS
     switch (data_bits) {
     default:
     case 8:

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-15 13:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-14  5:03 set qemu support serial crtscts 付小明
2021-04-14 13:24 ` Peter Maydell
2021-04-15  5:38   ` 付小明

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).