Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp911976rdb; Tue, 23 Jan 2024 21:18:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IHIcibVIVLOVul3ZkUjHFtRBxK81LEuHAjq2+JW7g/LQPzRSp5/DuPtKenrN5c+j6cqkzBI X-Received: by 2002:a17:906:d011:b0:a30:ab69:9e60 with SMTP id z17-20020a170906d01100b00a30ab699e60mr509827ejy.133.1706073491600; Tue, 23 Jan 2024 21:18:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706073491; cv=pass; d=google.com; s=arc-20160816; b=yHrM8a5a3bwmh9Trx73UF20UlY/ei4t2x4Wa1ZygtQxqGca+TkLBLH89ZspOa/cIfm hMM+7tpDwQALVV9NB+kHjxjfAgz+ISDMaa6BXDLI5AYLrWabG0Jw/Xww2LtRg1NikMdI eE0fGVaeqj8hGepr8RmbJUwjtOJ5/20IGKAX5TisFkaMfO4sSrO5oQgUIiwA+ZcFOnEo /cmF8OqIaYfJVj1L81/v42hiOFWkw+2wF43kDIsF1inPVw4+VuaEjlVkx04cvA3o6f+p E5MT9yzR9z2BDUMJA1P6M1N/gvsWRe0KUWvAISsNnGGpmorWnllkcxWgrjJLgxO2ztTC Wyow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date; bh=XNiwvYR0sbKZZynRPIUFLzn9Wcb2cw2TWYiLCwpV8zQ=; fh=hKBU0hrtOSdLQMPa/Vr+1MsshUq0adi5jIXr2TUszko=; b=Ct3wL3PF3UW5FJRoVzGDndjYXlI/a6rZzSV3jIMtxIcDehkG6yIHuKLy7+GCXQcsSl 9m6fqX9nozLPaxeD3JgYiywaTTh0BsJzWtBXL7LSq1OJ3jtZubcv1AK5hvkRXCCjp3F3 ZJH1FQK+UibNJS5EjM0uXlBbmrrGWnTRYpMtxoCnsPJ65cJHD5rd3evXIN6M4XZega/E qSk4xP9AMqrRrnkVIgZwJTQitncRUd5IP1Nwuv/fF735nB6ZW5XKro9ifYWfOGad+9uA 1ImHQjK2WF+VntsTdQ1OQveBDX+TuvLqW9086cAM170nfqRtDt4ql/yUCjzdRWYz7922 pIYw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-36465-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36465-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id p27-20020a1709060e9b00b00a310964c2casi540524ejf.515.2024.01.23.21.18.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 21:18:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36465-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-36465-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36465-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5E2491F23C50 for ; Wed, 24 Jan 2024 05:18:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1EC7AE57A; Wed, 24 Jan 2024 05:17:57 +0000 (UTC) Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5B55DDD0; Wed, 24 Jan 2024 05:17:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706073476; cv=none; b=Fha3yk8saVAEAAQvyK3MgjROC7S7cLB+0wbZyr8QfDGvGwPQr9I9G9hPAUiv4sGkSFCZpg/G+Awz1bCBQAAv3DU5/Ir9mjBTQ6rC6lBGVBb041chy81GNtn8P/JH2gJ2WVHXtavkvR+2jC+mN9bIJ/jwu/aMDYmtCqeChS7Rdy4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706073476; c=relaxed/simple; bh=D4U+G3+No+qUuQObL6c1NR2hyUkPlZqGZyAIN1w4kis=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=QkasSzyHwDHe5FeRJ6BerUnFDB5cB2qhYzYlsWBOpQ0N20ISLjat0QcwSDD4eTtkXW1tm1fIBn/NmTW2b8nIynH8oP756gpWjeHo8lcmoOV038XPGW9xa2iz175aFcqBktcEGr3FvUBQRL+C1ukyp4Wf2gB7NCGRWvxKEni4dzU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96.2) (envelope-from ) id 1rSVdj-00010p-1D; Wed, 24 Jan 2024 05:17:32 +0000 Date: Wed, 24 Jan 2024 05:17:25 +0000 From: Daniel Golle To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= , Daniel Golle , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: John Crispin Subject: [PATCH net] net: dsa: mt7530: fix 10M/100M speed on MT7988 switch Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Setup PMCR port register for actual speed and duplex on internally connected PHYs of the MT7988 built-in switch. This fixes links with speeds other than 1000M. Fixes: ("110c18bfed414 net: dsa: mt7530: introduce driver for MT7988 built-in switch") Signed-off-by: Daniel Golle --- drivers/net/dsa/mt7530.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c index f8ecc354630b0..fbd52ff7cbd6e 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -2843,8 +2843,7 @@ static void mt753x_phylink_mac_link_up(struct dsa_switch *ds, int port, /* MT753x MAC works in 1G full duplex mode for all up-clocked * variants. */ - if (interface == PHY_INTERFACE_MODE_INTERNAL || - interface == PHY_INTERFACE_MODE_TRGMII || + if (interface == PHY_INTERFACE_MODE_TRGMII || (phy_interface_mode_is_8023z(interface))) { speed = SPEED_1000; duplex = DUPLEX_FULL; -- 2.43.0