Received: by 2002:a19:5205:0:0:0:0:0 with SMTP id m5csp1611540lfb; Fri, 3 Sep 2021 12:52:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeKdKyWZMqJfGDv2YZYcQurIeSv+SM84TB8nX/YOQPDwz6qMnOyvDYxEXW0QVqyE5FrgTf X-Received: by 2002:a5d:9707:: with SMTP id h7mr514822iol.28.1630698752983; Fri, 03 Sep 2021 12:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630698752; cv=none; d=google.com; s=arc-20160816; b=zjeLWgdT6ebv6bJ3ou1R+0dt4qxh8PHU4Hw8PMd9U4PDpcMvHTIz1biBUo/KfUexEv kgjjhW91VqXCSlSBzUL4qfomMv+4bajAeyCZx/JfbWc2HbScgx3Hr+7kfu+Ru2qIefph Kqr7T90+uBRu3m+8/IAAh6AfihX++w4A2TuF3f9AT6ZHwguvzW39fsriF/6V5WbYBjcd FgS+nTAVSSn/vf3s2wQRE3WmK5jbgoJRngHNicIbR06z1p/EeCYNis8Q4YcWsD4ls4iZ VyATt7xYAeBFxSoOaqxTf1jFs1Z1ew3yovBzE0YCXvOs5pxk/nrLkGPtf5atkK4sihLW zV9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from; bh=fv72HIG+GfrqNEdBRfRFaNHSTIzUGgYTewyRzcEe69k=; b=jAYU/8IEIaX0uUISUp+sydadn/fCu1kPhQFRincy0qAwkfyhZHk7zPb744zaJO4Wlx zM4IIi3sMp0UCtGF22aJlamHpE+SywQYhPZfEXyVHZ1sy/F2e0Q3aE1oHoHLR5tzB4IL tsbYIrWxkjkdNsh7w3muEdvw9D8PotlHBQQ6GZEAeN2LXzPFw9zwtQClD0Nfvy+7puOy v3lWXZca0+VQ3a/ZUtG/EHIEmFIcIH+X8vIJV8aLOqz/lSSOsZLBC59VmIvh6Q4gQ3Wq HRpahN6+CjNRlBSrXaHCOLyp/r5PJO+IaWgSqgvFIMDXMgx49tmpV7r3EyT6wG3KK0NL 9njg== ARC-Authentication-Results: i=1; mx.google.com; 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" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x10si230165ilg.50.2021.09.03.12.52.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Sep 2021 12:52:32 -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; 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" Received: from localhost ([::1]:35276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMFEm-0000UG-9R for alex.bennee@linaro.org; Fri, 03 Sep 2021 15:52:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMF42-00041y-83 for qemu-arm@nongnu.org; Fri, 03 Sep 2021 15:41:26 -0400 Received: from 5.mo548.mail-out.ovh.net ([188.165.49.213]:60345) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMF3y-0002FG-8X for qemu-arm@nongnu.org; Fri, 03 Sep 2021 15:41:25 -0400 Received: from mxplan5.mail.ovh.net (unknown [10.109.156.35]) by mo548.mail-out.ovh.net (Postfix) with ESMTPS id 0AF4D203FC; Fri, 3 Sep 2021 19:41:12 +0000 (UTC) Received: from kaod.org (37.59.142.103) by DAG4EX1.mxp5.local (172.16.2.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.14; Fri, 3 Sep 2021 21:41:11 +0200 Authentication-Results: garm.ovh; auth=pass (GARM-103G00584629177-eee2-4c02-b3c9-79bb1276241f, 15E2C03324B5D6AD2543493448FEC157D625CB40) smtp.auth=clg@kaod.org X-OVh-ClientIp: 82.64.250.170 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: Peter Maydell Subject: [PULL 02/14] hw: arm: aspeed: Enable mac0/1 instead of mac1/2 for g220a Date: Fri, 3 Sep 2021 21:40:56 +0200 Message-ID: <20210903194108.131403-3-clg@kaod.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210903194108.131403-1-clg@kaod.org> References: <20210903194108.131403-1-clg@kaod.org> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [37.59.142.103] X-ClientProxiedBy: DAG6EX2.mxp5.local (172.16.2.52) To DAG4EX1.mxp5.local (172.16.2.31) X-Ovh-Tracer-GUID: e495850b-e725-4459-9b06-4c521c8bd623 X-Ovh-Tracer-Id: 8815514797955910505 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvtddruddvjedgudefkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhggtgfgihesthekredtredtjeenucfhrhhomhepveorughrihgtucfnvgcuifhorghtvghruceotghlgheskhgrohgurdhorhhgqeenucggtffrrghtthgvrhhnpeehheefgeejiedtffefteejudevjeeufeeugfdtfeeuleeuteevleeihffhgfdtleenucfkpheptddrtddrtddrtddpfeejrdehledrudegvddruddtfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehmgihplhgrnhehrdhmrghilhdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomheptghlgheskhgrohgurdhorhhgpdhrtghpthhtoheptghlgheskhgrohgurdhorhhg Received-SPF: pass client-ip=188.165.49.213; envelope-from=clg@kaod.org; helo=5.mo548.mail-out.ovh.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Jeffery , qemu-devel@nongnu.org, qemu-arm@nongnu.org, =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Guenter Roeck , Joel Stanley Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: cw3+98XTSg7m From: Guenter Roeck According to its dts file in the Linux kernel, we need mac0 and mac1 enabled instead of mac1 and mac2. Also, g220a is based on aspeed-g5 (ast2500) which doesn't even have the third interface. Signed-off-by: Guenter Roeck Reviewed-by: Cédric Le Goater Message-Id: <20210810035742.550391-1-linux@roeck-us.net> Signed-off-by: Cédric Le Goater --- hw/arm/aspeed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index ecf0c9cfacb8..20e3a7716006 100644 --- a/hw/arm/aspeed.c +++ b/hw/arm/aspeed.c @@ -997,7 +997,7 @@ static void aspeed_machine_g220a_class_init(ObjectClass *oc, void *data) amc->fmc_model = "n25q512a"; amc->spi_model = "mx25l25635e"; amc->num_cs = 2; - amc->macs_mask = ASPEED_MAC1_ON | ASPEED_MAC2_ON; + amc->macs_mask = ASPEED_MAC0_ON | ASPEED_MAC1_ON; amc->i2c_init = g220a_bmc_i2c_init; mc->default_ram_size = 1024 * MiB; mc->default_cpus = mc->min_cpus = mc->max_cpus = -- 2.31.1