From patchwork Wed Dec 11 16:18:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 849163 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp414209wry; Wed, 11 Dec 2024 08:22:11 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVjAa3O8VbvStlelDUruQqEKxo7saROG1ugPYyaA9pYR1ZEaaXw/OMxPh+9L600NEWMlHxhfQ==@linaro.org X-Google-Smtp-Source: AGHT+IHHlq1DCTYyz8OOtjGlTF3IKRUT7jyYCtXSmyOfSitPVYlMD9krX7hX3ihRkepYVq4Tvbk4 X-Received: by 2002:a05:620a:4491:b0:7b6:e9db:3b15 with SMTP id af79cd13be357-7b6eb521e44mr463626685a.39.1733934131229; Wed, 11 Dec 2024 08:22:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733934131; cv=none; d=google.com; s=arc-20240605; b=O6d9ETez83gML9utYzuuaAZr6IBXJYZnPff3muV+I4jc3JiQ81wgdvPMQfQhqDdUEh WdkXTxQRF64IrZLcoi1n3AuWoirCqHBJo4KXUnPV61WOU3M502f0oklRVXg0enGAZP8f YPsa5CQN+mmja+9BcHvMArc1z6XYIetpNsUGVwfzSJi2vsm9Xek1KiVHuXVK1gwJS3wW boou08AiTRvByL3IyYqohbmytbKBb1PueWTe6X00KLAGrREVrq4hHZONNLu613aI/XlO 0WgMBfqxbpCbE9NRbOVCVA7Pj9bxxNLhK8EQb1ugjrsUJhiee0LGSBBT7gwZTccVcXn9 E87Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to: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 :dkim-signature; bh=SaE8qkAdKJuPj5dpI7bzFzLk3IAsCJj4Y7jMaT1vwOo=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=JHTbp2ARcz6ioV++6YbE93oeQQLK6Ra47HjS56eF1Xtzt6rmKRjEzqpqfQD8CZVcE7 dLzHKZhoV1b5j9VHW3b59qbtUF2sskPuyam4epPjjp7IeEwRtehW8/5OAryijDvE3IKI O4tB0BFRABM1LizViHPRZHpSwA/fHGAhcy3SW2TwZ61W1P0qmxEE+J9EMtZpV73h3o4+ RW933TjnkzMjfFiJ34oSXqXLDmlw4C+6MwDjkrjqGbd4gSYzH5qTRJlcYF44h4EBQHPs 1wdhuvh9K8yr9GmlHxPn/GlLPgvZS3uXWhM8ZEY4ZPkGPsZgQNGZE5hI/aN1/pZlNuV7 Guiw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y0UzddCN; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b6d3f5e937si957756585a.117.2024.12.11.08.22.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Dec 2024 08:22:11 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y0UzddCN; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLPRk-00008F-Db; Wed, 11 Dec 2024 11:20:20 -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 1tLPRg-000057-UX for qemu-devel@nongnu.org; Wed, 11 Dec 2024 11:20:17 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLPRf-0007au-8T for qemu-devel@nongnu.org; Wed, 11 Dec 2024 11:20:16 -0500 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-3863703258fso521947f8f.1 for ; Wed, 11 Dec 2024 08:20:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733934013; x=1734538813; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=SaE8qkAdKJuPj5dpI7bzFzLk3IAsCJj4Y7jMaT1vwOo=; b=Y0UzddCNBdudMRH/6kOi9EGqsTkhn0wlzwq3YZNFS93+lDctIQnFwFTg8tMR3UlVaT vUNO9CObSTRojQFaB/9Qt4V4pv7iMucdl1mUgWthGKI78YHIbUskVGOJ6vBdkT0raMWr uV+p/rCbxzgEEMHeBZ+QsgaBbCm8oLyX29BHNRbZfQzqWppQ0fI8o/65YgKc//zy+w85 TH9YqC2JXKBPxuxGd0W/zalsv5KQ27qtfPKHpMb9B6Hi6P5PSV89xWY44mF7HYIhjmM8 V80/d9wZluq/vhiBPly8HHTaqDFh499KX+eJ8rFaCJduKEpRtdIJjueiTlzbVALbqdwk ap/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733934013; x=1734538813; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SaE8qkAdKJuPj5dpI7bzFzLk3IAsCJj4Y7jMaT1vwOo=; b=C/ZXQOENRZagjBs7kGDWgGZ8Jo5oJzjNweQm+53Cuq4XgTYpAYEWNZPENR8fRp7gQW gGM5/gdo5/EjUXAEXFPP6Vo4dE4+WQccbmUt/iDx9K3hI2LWIBAUW+BelxOGchJhSCHs jsH45UqlgGnyXWPzuDhFUcxh9IEvi1SRh8oEKpjar1sBedULH/OBZf0jyqsNdehUcuT3 4HmGxm0Edbxi4OJntAOF2fwyqdvuilHYCAT44npdc3oiKK4pjoWH0ujtk7lyqnjZOA6K xMZJgJhhIGHaeOskvX+Z8F6Y/GWKguAEI07yayaSSO+9fDe1v3m3A7M+mVOZpmINsrra dmCg== X-Gm-Message-State: AOJu0YwxfmdRjJSVQoTa3V6nB6q5aGPtpJTlAvlovOSd3g8pJiJMOdlg +ElCLirt7MC7f6OjLSFTIJr51Ig9vQ2jPcZVX2Dp3sWR56Jj8ae2EtqrZz2fJ3p7/TVaOXwvmIa / X-Gm-Gg: ASbGnct3ZoelyUzqw30hbigGgBK8hFlkAZ30eidvdO0Iz6mjIQJIzYRljdO5n2j2kNY Z7dSD5F/67Cq9vc3DN5JGil2ChMBAXRTq5NndyytrWGHUdRC+QzS2hqX/SSs6jUdRNI5cokdokC mNNfDgUe1HdeNNFlur57EYdpNrUgcr/9aRXj70JgVak5090tODBCIEQDPcThTas0OGyXLnnEHvw kHygolKi1mPKCsONxfZXY9BJ20fHteR9i99/tcIb2AEIt71XAeX/JVrwzKW X-Received: by 2002:a5d:5f4a:0:b0:386:37f8:451c with SMTP id ffacd0b85a97d-3864de8ef5dmr3022550f8f.1.1733934013649; Wed, 11 Dec 2024 08:20:13 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434f4dfdcdfsm121460595e9.39.2024.12.11.08.20.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2024 08:20:12 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 05/72] hw/net/lan9118_phy: Add missing 100 mbps full duplex advertisement Date: Wed, 11 Dec 2024 16:18:57 +0000 Message-Id: <20241211162004.2795499-6-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241211162004.2795499-1-peter.maydell@linaro.org> References: <20241211162004.2795499-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x430.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Bernhard Beschow The real device advertises this mode and the device model already advertises 100 mbps half duplex and 10 mbps full+half duplex. So advertise this mode to make the model more realistic. Reviewed-by: Peter Maydell Signed-off-by: Bernhard Beschow Tested-by: Guenter Roeck Message-id: 20241102125724.532843-6-shentey@gmail.com Signed-off-by: Peter Maydell --- hw/net/lan9118_phy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/net/lan9118_phy.c b/hw/net/lan9118_phy.c index 874dae4155a..5c53a4a1e3f 100644 --- a/hw/net/lan9118_phy.c +++ b/hw/net/lan9118_phy.c @@ -110,8 +110,8 @@ void lan9118_phy_write(Lan9118PhyState *s, int reg, uint16_t val) break; case MII_ANAR: s->advertise = (val & (MII_ANAR_RFAULT | MII_ANAR_PAUSE_ASYM | - MII_ANAR_PAUSE | MII_ANAR_10FD | MII_ANAR_10 | - MII_ANAR_SELECT)) + MII_ANAR_PAUSE | MII_ANAR_TXFD | MII_ANAR_10FD | + MII_ANAR_10 | MII_ANAR_SELECT)) | MII_ANAR_TX; break; case 30: /* Interrupt mask */