From: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
To: "Paolo Bonzini" <pbonzini@redhat.com>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Thomas Huth" <thuth@redhat.com>
Cc: "Philippe Mathieu-Daudé" <f4bug@amsat.org>,
qemu-devel@nongnu.org, "Michael S. Tsirkin" <mst@redhat.com>,
"Eric Blake" <eblake@redhat.com>
Subject: [Qemu-devel] [PATCH 0/7] serial: add serial_chr_nonnull()
Date: Thu, 31 Aug 2017 00:52:59 -0300 [thread overview]
Message-ID: <20170831035306.29170-1-f4bug@amsat.org> (raw)
Hi,
This series add the serial_chr_nonnull() which connect to the "null" chardev
backend if none is provided.
Inspired by Peter's suggestion:
http://lists.nongnu.org/archive/html/qemu-devel/2017-08/msg05987.html
which also refers to this issue:
http://lists.nongnu.org/archive/html/qemu-devel/2017-08/msg03546.html
Some boards still check serial_hds[x] non null before calling serial_mm_init(),
this check could now be removed on the SoC which always have an UART mapped.
This might be a follow up if this series is accepted.
Regards,
Phil.
Philippe Mathieu-Daudé (7):
serial: add serial_chr_nonnull() to use the null backend when none provided
serial: use serial_chr_nonnull() in serial_mm_init()
hw/arm/fsl_imx*: use serial_chr_nonnull()
hw/mips/malta: use serial_chr_nonnull()
hw/char/exynos4210_uart: use serial_chr_nonnull()
hw/char/omap_uart: serial_mm_init() already check for null chr
hw/xtensa: serial_mm_init() already check for null chr
include/hw/char/imx_serial.h | 1 +
include/hw/char/serial.h | 1 +
hw/arm/fsl-imx25.c | 9 +--------
hw/arm/fsl-imx31.c | 9 +--------
hw/arm/fsl-imx6.c | 10 +---------
hw/char/exynos4210_uart.c | 14 ++------------
hw/char/omap_uart.c | 6 ++----
hw/char/serial.c | 15 ++++++++++++++-
hw/mips/mips_malta.c | 6 +-----
hw/xtensa/xtfpga.c | 4 ----
10 files changed, 24 insertions(+), 51 deletions(-)
--
2.14.1
next reply other threads:[~2017-08-31 3:53 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-31 3:52 Philippe Mathieu-Daudé [this message]
2017-08-31 3:53 ` [Qemu-devel] [PATCH 1/7] serial: add serial_chr_nonnull() to use the null backend when none provided Philippe Mathieu-Daudé
2017-08-31 5:19 ` Thomas Huth
2017-08-31 9:36 ` Marc-André Lureau
2017-08-31 9:43 ` Thomas Huth
2017-08-31 15:24 ` Philippe Mathieu-Daudé
2017-09-01 9:12 ` Markus Armbruster
2017-08-31 15:20 ` Philippe Mathieu-Daudé
2017-08-31 15:23 ` Thomas Huth
2017-08-31 10:28 ` Peter Maydell
2017-08-31 15:17 ` Philippe Mathieu-Daudé
2017-08-31 3:53 ` [Qemu-devel] [PATCH 2/7] serial: use serial_chr_nonnull() in serial_mm_init() Philippe Mathieu-Daudé
2017-08-31 3:53 ` [Qemu-devel] [PATCH 3/7] hw/arm/fsl_imx*: use serial_chr_nonnull() Philippe Mathieu-Daudé
2017-08-31 3:53 ` [Qemu-devel] [PATCH 4/7] hw/mips/malta: " Philippe Mathieu-Daudé
2017-08-31 3:53 ` [Qemu-devel] [PATCH 5/7] hw/char/exynos4210_uart: " Philippe Mathieu-Daudé
2017-08-31 3:53 ` [Qemu-devel] [PATCH 6/7] hw/char/omap_uart: serial_mm_init() already check for null chr Philippe Mathieu-Daudé
2017-08-31 3:53 ` [Qemu-devel] [PATCH 7/7] hw/xtensa: " Philippe Mathieu-Daudé
2017-09-05 14:56 ` [Qemu-devel] [PATCH 0/7] serial: add serial_chr_nonnull() Peter Maydell
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=20170831035306.29170-1-f4bug@amsat.org \
--to=f4bug@amsat.org \
--cc=eblake@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
/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).