qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: 付小明 <fxm16899@163.com>
To: qemu-devel@nongnu.org
Subject: set qemu support serial crtscts
Date: Wed, 14 Apr 2021 13:03:37 +0800 (CST)	[thread overview]
Message-ID: <554c28f.2f15.178cec36fd2.Coremail.fxm16899@163.com> (raw)


[-- 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:

             reply	other threads:[~2021-04-14 13:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-14  5:03 付小明 [this message]
2021-04-14 13:24 ` set qemu support serial crtscts Peter Maydell
2021-04-15  5:38   ` 付小明

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=554c28f.2f15.178cec36fd2.Coremail.fxm16899@163.com \
    --to=fxm16899@163.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).