From nobody Tue Feb 10 18:55:38 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=1562106400; cv=none; d=zoho.com; s=zohoarc; b=kddm6lXJS5CuS8ut1gf5xq4O9g8nuJe44p7h9n2X2GDI6jO1uPIiDhJRSeYql13ZfogRtxjNLMyWu+s4P4Wl4ezd2N+rkyD7JSLMC1d55JNgAY/VVK6y0zcf1gFazKdqBGaxBIg0WuTeuZJdDPVPhflnP1sTRzijlKpJUBwBh1g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562106400; 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=bMFbnlSmjAQV6N/0fRv8RNy8Vb6+H4sWjYpUEZVsyoNzIRWVmcsUpJHDU5kEeUYvlw5c4eiBsV5TYZ8A3xkKJvB1c6ZO46ZXImb5kuyH1ctjFv7Qoyt1NKSppUuBvYmvEh/eWelDz+40HLpt9DUIE5zI+dGbqymbI3VdWDZtEHk= 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 1562106399999399.5703183120256; Tue, 2 Jul 2019 15:26:39 -0700 (PDT) Received: from localhost ([::1]:57984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hiRET-0004WK-1K for importer@patchew.org; Tue, 02 Jul 2019 18:26:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46284) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hiR71-0006sf-3p for qemu-devel@nongnu.org; Tue, 02 Jul 2019 18:18:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hiR6y-0002ol-88 for qemu-devel@nongnu.org; Tue, 02 Jul 2019 18:18:54 -0400 Received: from mail.ilande.co.uk ([46.43.2.167]:44572 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 1hiR6x-0002G2-TI for qemu-devel@nongnu.org; Tue, 02 Jul 2019 18:18:52 -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 1hiR3o-0004bu-Mv; Tue, 02 Jul 2019 23:15:36 +0100 From: Mark Cave-Ayland To: peter.maydell@linaro.org, qemu-devel@nongnu.org Date: Tue, 2 Jul 2019 23:16:03 +0100 Message-Id: <20190702221606.21600-4-mark.cave-ayland@ilande.co.uk> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190702221606.21600-1-mark.cave-ayland@ilande.co.uk> References: <20190702221606.21600-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] [PULL 3/6] 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