From patchwork Wed Aug 14 18:15:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernhard Beschow X-Patchwork-Id: 13763798 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DFF24C52D7F for ; Wed, 14 Aug 2024 18:17:47 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1seIXO-0005E8-D5; Wed, 14 Aug 2024 14:15:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1seIXI-0005Ad-36; Wed, 14 Aug 2024 14:15:52 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1seIXG-0000B5-Ad; Wed, 14 Aug 2024 14:15:51 -0400 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-37186c2278bso95498f8f.1; Wed, 14 Aug 2024 11:15:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723659347; x=1724264147; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=iahjTri8KuVoj9s2LrgEu/hqpsziuAhYqC7/VHumG6g=; b=ksaPoK3IWT1RguytuYCX70CLgaIoMkAhLo8nfnQBu6Hb46T5eQ6aYH0i7pwwcesrXC R6f2ppT0NoLuCODor2kPjQoOJVKqiyHXZ4rOve3ylHWjWmppn3v0qxJYdHZGCfF98Mhc 1d9DF+LYnb3b+8Pz+eTvdNoumI2YqMe+g5/yG2hKCDSblrdxDVeFu5ByqsH7nYLAOlP6 m8Dq7P8rKJiUdOE2DYMyzs4+ZpfLmXU8OGJMbUfdU5OM6JB9g1hUl7EC9DpD1JdzoAjn nVHcAMCQlWQAf7ciFaQhsDo0KKs17nUoQv2iXHP9mbcP19SV1jqJPlmBg6ootAWc6v45 jqhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723659347; x=1724264147; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iahjTri8KuVoj9s2LrgEu/hqpsziuAhYqC7/VHumG6g=; b=N6r80uhqu7ryZECuuYg2VMdfwD27YS+6shAmDQ9habSiREAqG3AvB34D60Sd/Kxnvy AdTllRRjK3+wDcad9PC291GSAJM9Kp6gmsBfQESPhVZE9nIJ1twHdLcehkyIaiJAPjtR BnWqCJz0cNawjeYqT6yhmaWRyZ+W+ilTVszA5cZRomGSGLXmicts1z3XACDmz4Z3qaC6 e9vmCN4ua7X5eCgd/sat2OGChVoa1mfFyuWr+obI3JCBaUKcJE8D0tirPqJIiAaP8Sp+ sqWy+qAcMgGpZXWCLu2w16Y51cNn4IcdhqoEIlxgvNAqwFTqpQss+AycRcySm6f93djc ZALQ== X-Forwarded-Encrypted: i=1; AJvYcCUMR4o7y7jMjaHwWTwr/pI/4EVWuhl+64TiBvKm8sBOCSfaqgeWPQaDbpxlBbzx5fWjdRwLA8lOrV0DxJjTgzhCH5Z6obpi4EAm3KIcQv21xsMDpDXCWoye0MaC7LerRUgHkYhqLT0GzNEHMgFAX8I= X-Gm-Message-State: AOJu0Yyi5DXAB15InPtNkpWcbTyDY4Oyk+sw1cClL4FZP8yThokCn02y U6XzgD6b4F/Cbflo5N00Zea2JkyxunNO4n11sWP2E0WzH/hvp/K6vnfe2Q== X-Google-Smtp-Source: AGHT+IHKBpeEiHZv33wqcjUze0VuHzE2h52H+bCj7BymPA4DCAn9EJ9eBuqnLgW4FGqWFnTUE2VkLg== X-Received: by 2002:adf:f648:0:b0:366:ee84:6a77 with SMTP id ffacd0b85a97d-37186bbd203mr469786f8f.3.1723659346425; Wed, 14 Aug 2024 11:15:46 -0700 (PDT) Received: from Provence.localdomain (dynamic-078-055-049-243.78.55.pool.telefonica.de. [78.55.49.243]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36e4c937bb9sm13557625f8f.34.2024.08.14.11.15.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2024 11:15:45 -0700 (PDT) From: Bernhard Beschow To: qemu-devel@nongnu.org Cc: Jiaxun Yang , Niek Linnenbank , Bin Meng , Paul Burton , Stafford Horne , qemu-ppc@nongnu.org, Tyrone Ting , Joel Stanley , Eduardo Habkost , Sergio Lopez , Andrew Jeffery , "Edgar E. Iglesias" , Paolo Bonzini , Hao Wu , Alistair Francis , BALATON Zoltan , Jan Kiszka , Beniamino Galvani , Peter Maydell , "Michael S. Tsirkin" , Aurelien Jarno , Palmer Dabbelt , Alistair Francis , Artyom Tarasenko , Jia Liu , Helge Deller , Max Filippov , Subbaraya Sundeep , Weiwei Li , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Nicholas Piggin , Mark Cave-Ayland , Daniel Henrique Barboza , Steven Lee , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Huacai Chen , Richard Henderson , Strahinja Jankovic , qemu-arm@nongnu.org, Aleksandar Rikalo , Troy Lee , Jamin Lin , Liu Zhiwei , =?utf-8?b?RnLDqWTDqXJpYyBCYXJy?= =?utf-8?b?YXQ=?= , =?utf-8?q?C=C3=A9dric_Le_Goater?= , =?utf-8?q?Herv=C3=A9_Pous?= =?utf-8?q?sineau?= , qemu-riscv@nongnu.org, Marcel Apfelbaum , Song Gao , Bernhard Beschow Subject: [PATCH 0/5] Serial device cleanup Date: Wed, 14 Aug 2024 20:15:29 +0200 Message-ID: <20240814181534.218964-1-shentey@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=shentey@gmail.com; helo=mail-wr1-x42f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org This series extracts TYPE_SERIAL_MM into its own module and introduces a dedicated header for TYPE_SERIAL_ISA. The result is that no board directly depends on CONFIG_SERIAL or includes hw/char/serial.h any more. Bernhard Beschow (5): hw: Remove unused inclusion of hw/char/serial.h hw/char/serial: Remove unused funtion hw/ppc/Kconfig: Add missing SERIAL_ISA dependency to POWERNV machine hw/char/serial.h: Extract serial-isa.h hw/char: Extract serial-mm include/hw/arm/aspeed_soc.h | 2 +- include/hw/char/mchp_pfsoc_mmuart.h | 2 +- include/hw/char/serial-isa.h | 38 +++++++ include/hw/char/serial-mm.h | 52 +++++++++ include/hw/char/serial.h | 30 ------ hw/arm/allwinner-a10.c | 2 +- hw/arm/allwinner-h3.c | 2 +- hw/arm/allwinner-r40.c | 2 +- hw/arm/aspeed_ast2400.c | 2 +- hw/arm/aspeed_soc_common.c | 2 +- hw/arm/kzm.c | 2 +- hw/arm/msf2-soc.c | 2 +- hw/arm/musicpal.c | 2 +- hw/arm/npcm7xx.c | 2 +- hw/arm/pxa2xx.c | 2 +- hw/char/omap_uart.c | 2 +- hw/char/riscv_htif.c | 1 - hw/char/serial-isa.c | 1 + hw/char/serial-mm.c | 157 ++++++++++++++++++++++++++++ hw/char/serial.c | 133 ----------------------- hw/display/sm501.c | 2 +- hw/hppa/machine.c | 2 +- hw/i386/microvm-dt.c | 2 +- hw/i386/microvm.c | 2 +- hw/i386/pc.c | 2 +- hw/isa/isa-superio.c | 2 +- hw/isa/vt82c686.c | 2 +- hw/loongarch/virt.c | 2 +- hw/microblaze/petalogix_ml605_mmu.c | 2 +- hw/mips/boston.c | 2 +- hw/mips/jazz.c | 2 +- hw/mips/loongson3_virt.c | 2 +- hw/mips/malta.c | 2 +- hw/mips/mipssim.c | 2 +- hw/openrisc/openrisc_sim.c | 2 +- hw/openrisc/virt.c | 2 +- hw/ppc/e500.c | 2 +- hw/ppc/pnv.c | 2 +- hw/ppc/ppc405_uc.c | 2 +- hw/ppc/ppc440_bamboo.c | 2 +- hw/ppc/prep.c | 1 - hw/ppc/sam460ex.c | 2 +- hw/ppc/virtex_ml507.c | 2 +- hw/riscv/sifive_e.c | 1 - hw/riscv/sifive_u.c | 1 - hw/riscv/virt.c | 2 +- hw/sparc64/niagara.c | 2 +- hw/sparc64/sun4u.c | 3 +- hw/xtensa/xtfpga.c | 2 +- hw/arm/Kconfig | 20 ++-- hw/char/Kconfig | 4 + hw/char/meson.build | 1 + hw/display/Kconfig | 2 +- hw/hppa/Kconfig | 2 +- hw/loongarch/Kconfig | 2 +- hw/microblaze/Kconfig | 2 +- hw/mips/Kconfig | 10 +- hw/openrisc/Kconfig | 4 +- hw/ppc/Kconfig | 11 +- hw/riscv/Kconfig | 2 +- hw/sparc64/Kconfig | 1 + hw/xtensa/Kconfig | 2 +- 62 files changed, 323 insertions(+), 234 deletions(-) create mode 100644 include/hw/char/serial-isa.h create mode 100644 include/hw/char/serial-mm.h create mode 100644 hw/char/serial-mm.c