Received: by 2002:a05:7022:227:b0:85:21:bd5b with SMTP id 39csp1223095dll; Wed, 14 Aug 2024 17:36:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWwza/TlaDRq846VlRIaVPaNzvBLEgdxW2/wXHK4ubU+eW1FBgQCrc/KgyREd3dVHYOeSlfm5bLxakmMw==@linaro.org X-Google-Smtp-Source: AGHT+IGE0y9jBn97u5UrztVJjMjYJ1sLqYtAPZJB8rjKOf1pX9elXqHfvtPn75KWzymkWNFvaTps X-Received: by 2002:a05:6214:5d04:b0:6bd:7559:ab83 with SMTP id 6a1803df08f44-6bf5d2736a3mr49907076d6.47.1723682172366; Wed, 14 Aug 2024 17:36:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723682172; cv=none; d=google.com; s=arc-20160816; b=W1ireXDuixgs4/o3F+UmORdpw1NDwUQPtxqM75tGYT6e3h/lM42yiIwwv59zrJk4pb N8xKzQBtZpLamWoR7zKO6OTj54yc8U/8CQvYh3yoV5MVt8JzLHVpU8GvvIrigwZLkzVg VnSixeHBiwnGvcq+In8uF/R1uCMyQ4Cdxmc3V18QnAunDEHyV3Qs/9fRioiqJTjpQdTZ emOMMn/i2XV9mip9e4U2MS0yYDwJWFQLhTZ6BKysz06pIQI/WRYvooNI1YrJBenCYV7I MBW1yCpYu/OE2i5y/ktQOGoIPzoy9SzvHZos7s11lzxoTiPYTLdPy8uqGpawFwgKw2/K f9bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=zxYdA6kLcVsZr6AK0FSC3cRNk37DunjX/5eQvUQxYmw=; fh=25SH/+Ok57GKrAGnCLApiuvyMDCjD5FFHmaiTWwV1iE=; b=CHKAVA+vC5kQC/+XUB9jEhtgtMNXaHBTWLVmMBRB4mmIaDLTXVOrpy5agi04/oaAXt YZ7afHEBTyrhF01/oYGBEnaotnCfVYdVThgpAn1nEy5bY4rhV4HnFT9JsF9IPlr9hrR2 bg40fv9AtRjaHZv7AtKgd144ZErK4bDKPTGDRs2F1DQ56nfkFln1tpOAK1TjikpjWMhb ZDNUWPAZPI2MxGI6uf/FvI3kZdx9LDAyzB41byHrVp8tBAyFvSYelCQk2ABIKM8Qh9mA FKQxc9MP1mK0y3hVecJ/mgeJXgUweNXTJXgZXiohYhWTyjcK7Pz+qoEMGkm9KmkEFGoj R8lw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=MR7hC6ge; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6bf6fdc8a0asi4959566d6.30.2024.08.14.17.36.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Aug 2024 17:36:12 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=MR7hC6ge; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1seOTB-0006bC-Kv; Wed, 14 Aug 2024 20:36:03 -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 1seOT9-0006Ze-7m; Wed, 14 Aug 2024 20:36:00 -0400 Received: from pi.codeconstruct.com.au ([203.29.241.158] helo=codeconstruct.com.au) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1seOT4-0006Vt-QF; Wed, 14 Aug 2024 20:35:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1723682144; bh=zxYdA6kLcVsZr6AK0FSC3cRNk37DunjX/5eQvUQxYmw=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=MR7hC6ge9K8X6PS4PH/2PqQsOVFB2lGd23Sd9YSf5JqeQQT4Yl3H9yxKkjAdZTe5d mrReOsszo1619Kev6QUUin65iF+6jXbDcpp+RL+nyZLdF92JILbq0Y8X+QZtzwP4cc Ov/70RYBB+Pm7T+XGnaZ7mACmnMTbAh54+hMEmqk/c+V94GwrDWtb7VwR7ik1fovpp rSNEtxg3eUEDDDE4ER6DgIX+ML/jiF2RH+BrLxTqbeY2WXheZK72A3X6JcPuCasS7I BJFo1vxjUUJFXWjKL41K6HTpCGO77CzcJwfnWtv+QQam3PGTH2geaLqg8XfoaCrbJF j3C3PcljhlE5A== Received: from [192.168.68.112] (ppp118-210-65-51.adl-adc-lon-bras32.tpg.internode.on.net [118.210.65.51]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id 190D464C85; Thu, 15 Aug 2024 08:35:35 +0800 (AWST) Message-ID: Subject: Re: [PATCH 5/5] hw/char: Extract serial-mm From: Andrew Jeffery To: Bernhard Beschow , 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 , "Edgar E. Iglesias" , Paolo Bonzini , Hao Wu , Alistair Francis , BALATON Zoltan , Jan Kiszka , Beniamino Galvani , Peter Maydell , "Michael S. Tsirkin" , Aurelien Jarno , Palmer Dabbelt , Artyom Tarasenko , Jia Liu , Helge Deller , Max Filippov , Subbaraya Sundeep , Weiwei Li , =?ISO-8859-1?Q?Marc-Andr=E9?= Lureau , Nicholas Piggin , Mark Cave-Ayland , Daniel Henrique Barboza , Steven Lee , Philippe =?ISO-8859-1?Q?Mathieu-Daud=E9?= , Huacai Chen , Richard Henderson , Strahinja Jankovic , qemu-arm@nongnu.org, Aleksandar Rikalo , Troy Lee , Jamin Lin , Liu Zhiwei , =?ISO-8859-1?Q?Fr=E9d=E9ric?= Barrat , =?ISO-8859-1?Q?C=E9dric?= Le Goater , =?ISO-8859-1?Q?Herv=E9?= Poussineau , qemu-riscv@nongnu.org, Marcel Apfelbaum , Song Gao Date: Thu, 15 Aug 2024 10:05:34 +0930 In-Reply-To: <20240814181534.218964-6-shentey@gmail.com> References: <20240814181534.218964-1-shentey@gmail.com> <20240814181534.218964-6-shentey@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 Received-SPF: pass client-ip=203.29.241.158; envelope-from=andrew@codeconstruct.com.au; helo=codeconstruct.com.au 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, SPF_HELO_PASS=-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-arm@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-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: lI9mngTSP58i On Wed, 2024-08-14 at 20:15 +0200, Bernhard Beschow wrote: > hw/char/serial currently contains the implementation of both TYPE_SERIAL = and > TYPE_SERIAL_MM. According to serial_class_init(), TYPE_SERIAL is an inter= nal > class while TYPE_SERIAL_MM is used by numerous machine types directly. Le= t's > move the latter into its own module which makes the dependencies more obv= ious > and the code more tidy. >=20 > The includes and the dependencies have been converted mechanically except= in the > hw/char directories which were updated manually. The result was compile-t= ested. > Now, only hw/char makes direct use of TYPE_SERIAL: >=20 > # grep -r -e "select SERIAL" | grep -v SERIAL_ > hw/char/Kconfig: select SERIAL > hw/char/Kconfig: select SERIAL > hw/char/Kconfig: select SERIAL > hw/char/Kconfig: select SERIAL > hw/char/Kconfig: select SERIAL >=20 > # grep -r -e "/serial\\.h" > include/hw/char/serial-mm.h:#include "hw/char/serial.h" > hw/char/serial-pci-multi.c:#include "hw/char/serial.h" > hw/char/serial.c:#include "hw/char/serial.h" > hw/char/serial-isa.c:#include "hw/char/serial.h" > hw/char/serial-pci.c:#include "hw/char/serial.h" >=20 > Signed-off-by: Bernhard Beschow > --- > include/hw/arm/aspeed_soc.h | 2 +- ... > hw/arm/aspeed_ast2400.c | 2 +- > hw/arm/aspeed_soc_common.c | 2 +- For the Aspeed bits: Tested-by: Andrew Jeffery