From nobody Tue Feb 10 07:23:39 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1561916223; cv=none; d=zoho.com; s=zohoarc; b=C7CB0uG+GP70Em0+R3DAV8Xj5sQImrdlj3WOfG+cpQIVTaD/LcddpQDfmbDKQV0CeCODK+sLqCH4p2bbE11p9JEgkxHt7He5wcqEhhDa0Uv72t9A6YG17Sj4QTsXYMlpxdXsesb/1D5SPUWiYcamhkxy4clodqwX1hxoQ0GNfjY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1561916223; h=Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=QUKR91xXP63B9XSiDLa9I/XKo7bdA2stZAaaEysVyeE=; b=KbatI8RdFmt3UFDpjcx6BlwU/1ZTqsQQzMRqGlMd2aIfGOQKlUNmr86Dc6C/4knxBNRPofi5OT347mEqYxDvruDxjru3xRWm6IYgyBBA6J50Is6rzqjlZUKsfvqsxsNXSvM1zbdpXcM/Vrhtdnpk4EysO6cJN6I7S0RvTjZXsOg= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=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 156191622360288.00609345336932; Sun, 30 Jun 2019 10:37:03 -0700 (PDT) Received: from localhost ([::1]:45802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhdl2-0001iS-Iy for importer@patchew.org; Sun, 30 Jun 2019 13:36:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58311) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhdjU-0000LM-73 for qemu-devel@nongnu.org; Sun, 30 Jun 2019 13:35:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hhdjT-0000Tx-81 for qemu-devel@nongnu.org; Sun, 30 Jun 2019 13:35:20 -0400 Received: from mail.ilande.co.uk ([46.43.2.167]:40194 helo=mail.default.ilande.uk0.bigv.io) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hhdjT-0007yq-1P for qemu-devel@nongnu.org; Sun, 30 Jun 2019 13:35:19 -0400 Received: from host109-146-132-17.range109-146.btcentralplus.com ([109.146.132.17] helo=kentang.home) by mail.default.ilande.uk0.bigv.io with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hhdfr-0001xd-Gf for qemu-devel@nongnu.org; Sun, 30 Jun 2019 18:31:35 +0100 From: Mark Cave-Ayland To: qemu-devel@nongnu.org Date: Sun, 30 Jun 2019 18:32:00 +0100 Message-Id: <20190630173203.9620-3-mark.cave-ayland@ilande.co.uk> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190630173203.9620-1-mark.cave-ayland@ilande.co.uk> References: <20190630173203.9620-1-mark.cave-ayland@ilande.co.uk> X-SA-Exim-Connect-IP: 109.146.132.17 X-SA-Exim-Mail-From: mark.cave-ayland@ilande.co.uk X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on mail.default.ilande.uk0.bigv.io) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 46.43.2.167 Subject: [Qemu-devel] [PATCH 2/5] sunhme: fix incorrect constant in sunhme_can_receive() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Due to a copy/paste error the wrong register was being checked in order to determine if the NIC is able to receive data. Signed-off-by: Mark Cave-Ayland --- hw/net/sunhme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/sunhme.c b/hw/net/sunhme.c index 6d660a8238..e3a488ee1d 100644 --- a/hw/net/sunhme.c +++ b/hw/net/sunhme.c @@ -649,7 +649,7 @@ static int sunhme_can_receive(NetClientState *nc) { SunHMEState *s =3D qemu_get_nic_opaque(nc); =20 - return s->macregs[HME_MAC_RXCFG_ENABLE >> 2] & HME_MAC_RXCFG_ENABLE; + return s->macregs[HME_MACI_RXCFG >> 2] & HME_MAC_RXCFG_ENABLE; } =20 static void sunhme_link_status_changed(NetClientState *nc) --=20 2.11.0