From nobody Sat May 18 12:30:02 2024 Delivered-To: importer@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+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=git.sr.ht Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1696769864358750.210436088058; Sun, 8 Oct 2023 05:57:44 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpTKy-0000TU-Cy; Sun, 08 Oct 2023 08:56:48 -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 1qpOG9-0002AN-N8 for qemu-devel@nongnu.org; Sun, 08 Oct 2023 03:31:29 -0400 Received: from mail-b.sr.ht ([173.195.146.151]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qpOG8-0000xn-0e for qemu-devel@nongnu.org; Sun, 08 Oct 2023 03:31:29 -0400 Received: from git.sr.ht (unknown [173.195.146.142]) by mail-b.sr.ht (Postfix) with ESMTPSA id BF61F11EE06 for ; Sun, 8 Oct 2023 07:31:26 +0000 (UTC) Authentication-Results: mail-b.sr.ht; dkim=none From: ~disean Date: Sun, 08 Oct 2023 12:54:32 +0600 Subject: [PATCH QEMU] tulip: Fix LXT970 PHY registers Message-ID: <169675028663.32356.15668868212772607355-0@git.sr.ht> X-Mailer: git.sr.ht To: qemu-devel@nongnu.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=173.195.146.151; envelope-from=outgoing@sr.ht; helo=mail-b.sr.ht X-Spam_score_int: 2 X-Spam_score: 0.2 X-Spam_bar: / X-Spam_report: (0.2 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_REPLYTO=2.095, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 08 Oct 2023 08:56:45 -0400 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: , Reply-To: ~disean Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1696769865186100002 From: Dmitry Borisov Fix incorrect MII status value (0xf02c). Use default values from a 21143-based board: https://www.beowulf.org/pipermail/tulip-bug/2000-February/000485.html Signed-off-by: Dmitry Borisov --- hw/net/tulip.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) mode change 100644 =3D> 100755 hw/net/tulip.c diff --git a/hw/net/tulip.c b/hw/net/tulip.c old mode 100644 new mode 100755 index 915e5fb595..43e8f4bcb5 --- a/hw/net/tulip.c +++ b/hw/net/tulip.c @@ -415,14 +415,15 @@ static void tulip_update_rs(TULIPState *s, int state) trace_tulip_rx_state(tulip_rx_state_name(state)); } =20 +/* LEVEL1 LXT970 PHY registers */ static uint16_t tulip_mdi_default[] =3D { /* MDI Registers 0 - 6, 7 */ - 0x3100, 0xf02c, 0x7810, 0x0000, 0x0501, 0x4181, 0x0000, 0x0000, + 0x1000, 0x782d, 0x7810, 0x0001, 0x01e1, 0x41e1, 0x0001, 0x0000, /* MDI Registers 8 - 15 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, /* MDI Registers 16 - 31 */ - 0x0003, 0x0000, 0x0001, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, - 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + 0x0000, 0x0000, 0x4000, 0x0000, 0x38c8, 0x0010, 0x0000, 0x0002, + 0x0001, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, }; =20 /* Readonly mask for MDI (PHY) registers */ --=20 2.38.5