From nobody Tue Feb 10 11:34:37 2026 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1673715786848938.7755165782711; Sat, 14 Jan 2023 09:03:06 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGjvB-0005in-Ae; Sat, 14 Jan 2023 12:02:21 -0500 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 1pGjus-0005EY-0F; Sat, 14 Jan 2023 12:02:04 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGjuq-0005RQ-HX; Sat, 14 Jan 2023 12:02:01 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id C1DDE5C00DE; Sat, 14 Jan 2023 12:01:59 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sat, 14 Jan 2023 12:01:59 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 14 Jan 2023 12:01:58 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pjd.dev; h=cc:cc :content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1673715719; x=1673802119; bh=2H FbEEwhihpA0OQ+6uIgQ52MfEuAPOyUdvNrKSDsV+c=; b=KSIXczFrgsJwx7gVz5 Yck+6jBFfJGQgV4C6mjAiFoRwdWLDJrgBHrYGxV83nKMbtjjRiOXhW7T3W9x+9tx jfOTYnfaJsIBZZTRk0WYdib+cgL2tBStK4hlNriAQBHI1AW87XNYShb7LRzMvS0d hoGShvHxrvnhZAyvQrslItlKnwOQMED51MMj1v88nc9LaPO+c2gAv8iUtLkEgm/I cxdbjC4+ayJoWUDSjBndy5HtULuFkvq7GKGqjYjN1H1GKsuiNtwimJp9GebxeIC3 m3aTANknT8heeTUaRRHOq0dJhfg0z07kdd0CkcweHkNZVw6Ykpe7+ewQRapYfrYQ f0/A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1673715719; x=1673802119; bh=2HFbEEwhihpA0 OQ+6uIgQ52MfEuAPOyUdvNrKSDsV+c=; b=TQqVqRkbqMFdPq7R4h4ox5it2Tayx zXH1h5xHDWX036Fh82syM+xsRawxeeK18eD8xsMfzKfYc6VE20MmYMGqY2GEz/c6 cTdzpHDgDTVboxEwWg9d++mRzVdiOKkDsSdAfezLog5XXBj3lsQwmeXO1m7BzQCk EK8PqtX1fynho1AHwtXkCpNiRCMQA6JquObALaLssyIgk6mP5AkzynZAQX0st9bY rgqH5IXc0zFt5P+zHWtTpPpFJu1vugqqw0UJOp+SE+d9KR0QUs/t+VyEXYZi+kxd oe8/YrGVsIZImjruc8pAhscgFcpXVO7PAYUUH7KbJAK8OPFpn7rsWJEmw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddttddgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenuchmihhsshhinhhgucfvqfcufhhivghlugculdeftd dmnecujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheprfgv thgvrhcuffgvlhgvvhhorhihrghsuceophgvthgvrhesphhjugdruggvvheqnecuggftrf grthhtvghrnhepteelgfeuleeffffffeekiefghfejuefgtdfgteeigeekvdefffevieek vdelteevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epphgvthgvrhesphhjugdruggvvh X-ME-Proxy: Feedback-ID: i9e814621:Fastmail From: Peter Delevoryas To: Cc: patrick@stwcx.xyz, peter@pjd.dev, clg@kaod.org, peter.maydell@linaro.org, andrew@aj.id.au, joal@jms.id.au, hskinnemoen@google.com, kfting@nuvoton.com, qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH 2/6] hw/arm/aspeed: Remove local copy of at24c_eeprom_init Date: Sat, 14 Jan 2023 09:01:47 -0800 Message-Id: <20230114170151.87833-3-peter@pjd.dev> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230114170151.87833-1-peter@pjd.dev> References: <20230114170151.87833-1-peter@pjd.dev> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=66.111.4.28; envelope-from=peter@pjd.dev; helo=out4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZM-MESSAGEID: 1673715787249100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Peter Delevoryas Reviewed-by: C=C3=A9dric Le Goater Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/aspeed.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index 55f114ef729f..1f9799d4321e 100644 --- a/hw/arm/aspeed.c +++ b/hw/arm/aspeed.c @@ -17,6 +17,7 @@ #include "hw/i2c/i2c_mux_pca954x.h" #include "hw/i2c/smbus_eeprom.h" #include "hw/misc/pca9552.h" +#include "hw/nvram/eeprom_at24c.h" #include "hw/sensor/tmp105.h" #include "hw/misc/led.h" #include "hw/qdev-properties.h" @@ -429,15 +430,6 @@ static void aspeed_machine_init(MachineState *machine) arm_load_kernel(ARM_CPU(first_cpu), machine, &aspeed_board_binfo); } =20 -static void at24c_eeprom_init(I2CBus *bus, uint8_t addr, uint32_t rsize) -{ - I2CSlave *i2c_dev =3D i2c_slave_new("at24c-eeprom", addr); - DeviceState *dev =3D DEVICE(i2c_dev); - - qdev_prop_set_uint32(dev, "rom-size", rsize); - i2c_slave_realize_and_unref(i2c_dev, bus, &error_abort); -} - static void palmetto_bmc_i2c_init(AspeedMachineState *bmc) { AspeedSoCState *soc =3D &bmc->soc; --=20 2.39.0