qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 0/7] serial: add serial_chr_nonnull()


From: Philippe Mathieu-Daudé
Subject: [Qemu-devel] [PATCH 0/7] serial: add serial_chr_nonnull()
Date: Thu, 31 Aug 2017 00:52:59 -0300

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]