{"id":808003,"url":"http://patchwork.ozlabs.org/api/1.0/covers/808003/?format=json","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.0/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20170831035306.29170-1-f4bug@amsat.org>","date":"2017-08-31T03:52:59","name":"[0/7] serial: add serial_chr_nonnull()","submitter":{"id":70924,"url":"http://patchwork.ozlabs.org/api/1.0/people/70924/?format=json","name":"Philippe Mathieu-Daudé","email":"f4bug@amsat.org"},"series":[{"id":736,"url":"http://patchwork.ozlabs.org/api/1.0/series/736/?format=json","date":"2017-08-31T03:52:59","name":"serial: add serial_chr_nonnull()","version":1,"mbox":"http://patchwork.ozlabs.org/series/736/mbox/"}],"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"g0B6n3Zj\"; dkim-atps=neutral"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xjT546j7lz9s3T\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 13:53:58 +1000 (AEST)","from localhost ([::1]:53783 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dnGYG-0000eN-Gg\n\tfor incoming@patchwork.ozlabs.org; Wed, 30 Aug 2017 23:53:56 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:55514)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dnGXf-0000e0-NT\n\tfor qemu-devel@nongnu.org; Wed, 30 Aug 2017 23:53:20 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dnGXa-0006Wm-PF\n\tfor qemu-devel@nongnu.org; Wed, 30 Aug 2017 23:53:19 -0400","from mail-qk0-x244.google.com ([2607:f8b0:400d:c09::244]:37206)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dnGXa-0006WO-Ki\n\tfor qemu-devel@nongnu.org; Wed, 30 Aug 2017 23:53:14 -0400","by mail-qk0-x244.google.com with SMTP id a21so24032qkg.4\n\tfor <qemu-devel@nongnu.org>; Wed, 30 Aug 2017 20:53:14 -0700 (PDT)","from yoga.offpageads.com ([181.93.89.178])\n\tby smtp.gmail.com with ESMTPSA id\n\tx20sm5072398qtb.5.2017.08.30.20.53.11\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 30 Aug 2017 20:53:13 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=+Spg+Wbk5tvf6JXSwVEPcxelWBFfdIs9RMgd6sAT2NI=;\n\tb=g0B6n3ZjtXyr7MZ0CBW3ubWg07RnsUrmS9HCy/MO3dLvyoPdq0Wdb1CrLY4PWumzt0\n\tUj5yfOCIULkRg/r2kvuO8+91nmtRqobbNnQDDH+wIuRVBA063uyi4iUovqswDSTkf380\n\tdy2iBRWluGGizocMfl/XlcQTfRaoNKW+dBIfX8bECWXjpDm2IVPLqXewHWaByIGCO/g6\n\t2++ANHODwsKntJlBNGmsrBJBKqS3B9r43jWVBJzQMGnNhJIkVbPahQExAqmtMQ+T5krP\n\txj7Du907XZDRN5OgFuG4zbuk5qrWZdfmu6oe1yBarrP1AEB4mCWBaHTNVuspS9n7+FTD\n\tD6eA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:mime-version:content-transfer-encoding;\n\tbh=+Spg+Wbk5tvf6JXSwVEPcxelWBFfdIs9RMgd6sAT2NI=;\n\tb=I/dg11PuucRvDgt7ylSKdoNUq9lNzCkapfthhEOyDNeYDDw1t0pZ/Ffhuw2u8eVR9T\n\tBe4NR2IUmnoHZS0cJFhhQ+d395S2MHXu52M+9jmVjCZFFuYUbLKcM/g1Psi5BcnbbWnq\n\tjBu8G/+WKkEtTR3WWU2KwDVR3oeOl+YY7JYduCFSJnxtAWglGbWl8xD6TJILp5myChxG\n\tEgyYsBnNtbBdUYnrQCWukfGPL3nKlp0ijljiVciPIG11rgWu6Z7kDPy5tAPmiwresFu1\n\tv5XYPyONqxD/k+/BLdLh0ZNHCoB/XimaybJANgGD3iK6/V/XkIEpQdL9tBZsqVILPilO\n\tKNHg==","X-Gm-Message-State":"AHPjjUgDGWjOgRud5JxhH8RK5Z/dSnqu/m6/lqFcFOIEzRX/B2gXNglI\n\tXIsv7pjfZ7ww1A==","X-Received":"by 10.55.21.200 with SMTP id 69mr2043340qkv.121.1504151593959;\n\tWed, 30 Aug 2017 20:53:13 -0700 (PDT)","From":"=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>","To":"Paolo Bonzini <pbonzini@redhat.com>, Peter Maydell\n\t<peter.maydell@linaro.org>, =?utf-8?q?Marc-Andr=C3=A9_Lureau?=\n\t<marcandre.lureau@redhat.com>, \tThomas Huth <thuth@redhat.com>","Date":"Thu, 31 Aug 2017 00:52:59 -0300","Message-Id":"<20170831035306.29170-1-f4bug@amsat.org>","X-Mailer":"git-send-email 2.14.1","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","X-detected-operating-system":"by eggs.gnu.org: Genre and OS details not\n\trecognized.","X-Received-From":"2607:f8b0:400d:c09::244","Subject":"[Qemu-devel] [PATCH 0/7] serial: add serial_chr_nonnull()","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"\"Michael S. Tsirkin\" <mst@redhat.com>, =?utf-8?q?Philippe_Mathieu-Daud?=\n\t=?utf-8?b?w6k=?= <f4bug@amsat.org>, \tqemu-devel@nongnu.org","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"},"content":"Hi,\n\nThis series add the serial_chr_nonnull() which connect to the \"null\" chardev\nbackend if none is provided.\n\nInspired by Peter's suggestion:\nhttp://lists.nongnu.org/archive/html/qemu-devel/2017-08/msg05987.html\nwhich also refers to this issue:\nhttp://lists.nongnu.org/archive/html/qemu-devel/2017-08/msg03546.html\n\nSome boards still check serial_hds[x] non null before calling serial_mm_init(),\nthis check could now be removed on the SoC which always have an UART mapped.\n\nThis might be a follow up if this series is accepted.\n\nRegards,\n\nPhil.\n\nPhilippe Mathieu-Daudé (7):\n  serial: add serial_chr_nonnull() to use the null backend when none provided\n  serial: use serial_chr_nonnull() in serial_mm_init()\n  hw/arm/fsl_imx*: use serial_chr_nonnull()\n  hw/mips/malta: use serial_chr_nonnull()\n  hw/char/exynos4210_uart: use serial_chr_nonnull()\n  hw/char/omap_uart: serial_mm_init() already check for null chr\n  hw/xtensa: serial_mm_init() already check for null chr\n\n include/hw/char/imx_serial.h |  1 +\n include/hw/char/serial.h     |  1 +\n hw/arm/fsl-imx25.c           |  9 +--------\n hw/arm/fsl-imx31.c           |  9 +--------\n hw/arm/fsl-imx6.c            | 10 +---------\n hw/char/exynos4210_uart.c    | 14 ++------------\n hw/char/omap_uart.c          |  6 ++----\n hw/char/serial.c             | 15 ++++++++++++++-\n hw/mips/mips_malta.c         |  6 +-----\n hw/xtensa/xtfpga.c           |  4 ----\n 10 files changed, 24 insertions(+), 51 deletions(-)"}