Message ID | 20231221072853.107678-4-dima.fedrau@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-7936-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp243901dyi; Wed, 20 Dec 2023 23:30:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IGqNdxglf1p/t4wXlJxVOyfVoqt3B9+NejWMlVar+tpeQDZOvFnKPB7f9zv5Jl7XC7OQO8k X-Received: by 2002:a05:6122:134c:b0:4b6:c871:5c33 with SMTP id f12-20020a056122134c00b004b6c8715c33mr635620vkp.18.1703143839050; Wed, 20 Dec 2023 23:30:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703143839; cv=none; d=google.com; s=arc-20160816; b=yk+/Sh2vvrub01OR/g/6gDIYH9MAtaH4rLRN3Y8p6U3J1Sqz2tnsfVblMw/41HHYgn p73pUeYRRcN9Qt7MmSC93/IVJnvDGo+YOPTRoqU9kdByeMney3J1YULFMg2ay+KZ/aQ/ kDlAvnnTj83YkWNYU0SHTPufcMiOMG5zSepvALSgGQR4ZWUmB2XYGIjMo/9ToI1twGyt kMutUrDfr7oeCcJyYMm2pWsTO1EVpBMtNDbKsxpNq2UANyJOY5TQh9i5hYqP+0yfDSto /krtGYvQxO7pSidQOM86OEV8Nx+ajQuXSTlAew8Ofunpw0UGhiQk+2JMHbiYAYgIENuH Wa1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=N8LbFzfRGhyEo7Z2rCSlcZvKPzGkHjgBRwyUpOjEIyo=; fh=TOl4FxWt5pBlu4XkSm4mUQyI/JKDmSoC512X9CiXBA8=; b=AA09sZbWcAYvMmehZmZmqJDIPtCD9sCwCLm7CpngKM6iAN9rjTRGkTCXBXCjx6aiT5 +h/VD9WugqoNT+UbqDlfSxg8azJRADMvGv6j2vUgtLoWruZrcNO7u4jMkAukLYL0vAh8 t5aP+YodUUhqUf5JBNV/AfYHe+ywmQm80MYwPo4SHRqvAPCLQ103B7DTjdccoMV/GMHE AQJ+QCTMa6LxqYyzOYumMOQQx4PFDYRvqqzql/1YEmOUSueYvi4/l0RwP7oSsVv38bjU exniqkFtnoAWiQFYFsoOPNq7UKuUVHIE7xWn1P3xLPWIS9ZQSZcqAabWEIHBzy0LN0Hx f0Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mYOlgOl1; spf=pass (google.com: domain of linux-kernel+bounces-7936-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7936-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id n4-20020a05620a294400b0077f0af0f019si1637599qkp.71.2023.12.20.23.30.38 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 23:30:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7936-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mYOlgOl1; spf=pass (google.com: domain of linux-kernel+bounces-7936-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7936-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D13541C21785 for <ouuuleilei@gmail.com>; Thu, 21 Dec 2023 07:30:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08C1918044; Thu, 21 Dec 2023 07:29:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mYOlgOl1" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B72D17736; Thu, 21 Dec 2023 07:29:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-552fba34d69so512136a12.3; Wed, 20 Dec 2023 23:29:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703143763; x=1703748563; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=N8LbFzfRGhyEo7Z2rCSlcZvKPzGkHjgBRwyUpOjEIyo=; b=mYOlgOl1+R/AzIrLlQJSUaVRq5kF6uqQaAzDuUaAVwV83oLYSGIhZAXCqUtmHlniGx RymLjNF0GZne6Kjg7Fy8H/MtFPYIiMtM1e4ZC3UmodN7LBRAxD2RZ52nj5YdhMtDKSfk wSS4eMWGoREXG42ooYQXyPe7VgSvcBNFp1LtMDG4qlq4kzr1sbkvdd8iunes3B+l+N8L cPtceum5HKaZf+W7/ysrbSDUA+Ehmc/ZnWxEw7rLtMvFZJe6sDgkkMalR816mqbYNEtZ KItqXSMRDA5lcwp/rTLDsrkslCf26PyBBupWskehi0qWesGJJovJOYgEzp6iPmgjuYA6 5DiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703143763; x=1703748563; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=N8LbFzfRGhyEo7Z2rCSlcZvKPzGkHjgBRwyUpOjEIyo=; b=k0SnozMwARQkCFG4/Gr3SDtHFuk/9rvslwwx8OJVuurPpY0QMvAB2Hg0TJI8oTtwyP W2UyWh26Zo8iGgXmRrikkWbdPBhzvpM/hT7+q0Yi/XcIKWsXkXd6C+8FxWxVK7KZ2auO PqZSEyHHOH9tj+ozqh7z6gWaxXvZ8C8SHNWV14NUZl8ctV169T7h1XheOS47FQM+leP0 Ew+GXpMwEdeb9z2qAZFOaUeRCQ+xlp+fxpWtuqowCkpQShEze1yrg8g1+ECkdACctm8P sxnUnMPJJ/aPCz+B9zYh0Ltdqbzna5a1L4Roo7EjJtN0ZdNgJ/26QQr/TOpDhgy6dQwl btWw== X-Gm-Message-State: AOJu0YyETpvyJgGeqjqxELKggsvEdHneByk2GCxcONL8SAxVpewAAGhC vaAs7F4N9dtlsJqk41Gj+fk= X-Received: by 2002:a50:cbcc:0:b0:54c:d2:ea39 with SMTP id l12-20020a50cbcc000000b0054c00d2ea39mr11263707edi.18.1703143763176; Wed, 20 Dec 2023 23:29:23 -0800 (PST) Received: from debian.fritz.box ([93.184.186.109]) by smtp.gmail.com with ESMTPSA id en22-20020a056402529600b00553830eb2fcsm787819edb.64.2023.12.20.23.29.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 23:29:22 -0800 (PST) From: Dimitri Fedrau <dima.fedrau@gmail.com> To: Cc: Dimitri Fedrau <dima.fedrau@gmail.com>, Andrew Lunn <andrew@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Stefan Eichenberger <eichest@gmail.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/4] net: phy: c45: detect 100/1000BASE-T1 linkmode advertisements Date: Thu, 21 Dec 2023 08:28:50 +0100 Message-Id: <20231221072853.107678-4-dima.fedrau@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231221072853.107678-1-dima.fedrau@gmail.com> References: <20231219093554.GA6393@debian> <20231221072853.107678-1-dima.fedrau@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785875753841858858 X-GMAIL-MSGID: 1785875753841858858 |
Series |
net: phy: marvell-88q2xxx: add driver for the Marvell 88Q2220 PHY
|
|
Commit Message
Dimitri Fedrau
Dec. 21, 2023, 7:28 a.m. UTC
Set 100BT1 and 1000BT1 linkmode advertisement bits to adv_l_mask to
enable detection.
Signed-off-by: Dimitri Fedrau <dima.fedrau@gmail.com>
---
drivers/net/phy/phy-c45.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On Thu, Dec 21, 2023 at 08:28:50AM +0100, Dimitri Fedrau wrote: > Set 100BT1 and 1000BT1 linkmode advertisement bits to adv_l_mask to > enable detection. > > Signed-off-by: Dimitri Fedrau <dima.fedrau@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Andrew
diff --git a/drivers/net/phy/phy-c45.c b/drivers/net/phy/phy-c45.c index 8e6fd4962c48..81ee2915bfc7 100644 --- a/drivers/net/phy/phy-c45.c +++ b/drivers/net/phy/phy-c45.c @@ -208,7 +208,8 @@ static int genphy_c45_baset1_an_config_aneg(struct phy_device *phydev) adv_l_mask = MDIO_AN_T1_ADV_L_FORCE_MS | MDIO_AN_T1_ADV_L_PAUSE_CAP | MDIO_AN_T1_ADV_L_PAUSE_ASYM; - adv_m_mask = MDIO_AN_T1_ADV_M_MST | MDIO_AN_T1_ADV_M_B10L; + adv_m_mask = MDIO_AN_T1_ADV_M_1000BT1 | MDIO_AN_T1_ADV_M_100BT1 | + MDIO_AN_T1_ADV_M_MST | MDIO_AN_T1_ADV_M_B10L; switch (phydev->master_slave_set) { case MASTER_SLAVE_CFG_MASTER_FORCE: