Message ID | 20231218221814.69304-2-dima.fedrau@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-4445-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp1567478dyi; Mon, 18 Dec 2023 14:19:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKkY0iQcWrHkNbdFOrT5HzEJLGHOIAYzS6F7La9aOe2XSknWJSVRyhmceC/xdPAgjqJ9Bj X-Received: by 2002:a05:6a00:2fcb:b0:6d8:ebb3:91eb with SMTP id fn11-20020a056a002fcb00b006d8ebb391ebmr1046956pfb.57.1702937970570; Mon, 18 Dec 2023 14:19:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702937970; cv=none; d=google.com; s=arc-20160816; b=t0DCDBAFmohKpNT6y7zYq8xX7iJtnebwf8h5NE1nDhAK/38teXQLJw9qU3arLO43f7 GuXGrsahRH6puLEFGNOCe/9VUKdZTc/gVoGohZ1oVuRjQI3W2bbFgMXXpakogWB9KCTy Rr4IVxbTIIYyuR+Q/nO5N9IeeTmAXU/4cQnKcb+SwgrhBVEYsnRqQg857GakwqC0bsMh 2+OFPRnAggtlwgWV7ffFNRadQrwFlDzWyqciYAQzA0FU86rO8M+Zxh4InmsFW1D0JyXd IVlX0BscwB3h0iJ4WbLugb1nMw5IMnKEAz4uwmdsRD3bx8fFIU4XSZtH2aKl+JyS4XwX VcaA== 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=vKxmXgd84F0l1C3rdxwz9qBQGX032HUOjc/IMT1HuYc=; fh=n2iRgffdRjRSy1E99dq+bgKpuVU8JrTsJmqz4qYQ4lI=; b=RDQQNM8xVHJfDf5R6ZYIYpwld2ZI7VjB15+ykHfz8q2kiuNJHBGoHqmUEetrOVgH8x XtH0aXKFW9CjWlzt7o9ipImQeiM/78nvABv5IiyfSV5Y2Y8NMPgUyGR1YcEdDAZOgCDd s7OW3ETj7QFoAq61h8hLzOBoSTtRCn85W96gXDg7w3hm5gKRhovQoLzacNGCm6yV8Nh1 rZUJ9lLhO3viXK5ZbXrInE/xXJ5g9SSkU95e52TrIT2vm16Z5lY+Hst8ZWiLn1lTUfn8 3YqAWZ3+TNRlR1hbqpcDIHaWqF8GfxENMIka25fts7Uk+3giapBBWObiFaayAjNRgejX DAWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dKlR7InW; spf=pass (google.com: domain of linux-kernel+bounces-4445-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4445-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bj7-20020a056a02018700b005c68da9ca8asi18853445pgb.787.2023.12.18.14.19.30 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 14:19:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4445-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dKlR7InW; spf=pass (google.com: domain of linux-kernel+bounces-4445-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4445-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1C9F42849E1 for <ouuuleilei@gmail.com>; Mon, 18 Dec 2023 22:19:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D161760AF; Mon, 18 Dec 2023 22:18:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dKlR7InW" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 2868D71470; Mon, 18 Dec 2023 22:18:37 +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-wm1-f51.google.com with SMTP id 5b1f17b1804b1-40c38de1ee4so38107955e9.0; Mon, 18 Dec 2023 14:18:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702937916; x=1703542716; 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=vKxmXgd84F0l1C3rdxwz9qBQGX032HUOjc/IMT1HuYc=; b=dKlR7InW5uhDWc5mu4uccAZ0T6mRDNZk3FSz3nynJwf+ex9bA23u2KJRFjEbyjSwmq ljZGbiUhnhBnByQ3pUMyokpOAExUxXWjhGw7BQ7Hbm4PE0LjuKZFE6BngHTx303GkqXf nrWmJdBsxbalxpZ/MEqTA2fBNj1XeeV97n3hc+o0B0FiXj91qpTT1sMjrx14GGdfOpk9 +4xK1d40Kc8fPPGJit8jQC9Zw+nWCQijSrh2SmOuRsmLNISarCbSvVB9O3kLO/M2nEqA 8IKXEpb57U+KlXxMcys/eBGMoVkKAllSR26aVjHijITanZx3rMmUo36Kot4E5xqODtMg 4aUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702937916; x=1703542716; 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=vKxmXgd84F0l1C3rdxwz9qBQGX032HUOjc/IMT1HuYc=; b=wSzGfafRF/0yqlv6X7b7PoqA8dUxIuHkrld6+CDwA6+MTRhWjsvtK+H+kDJ4k18wNn Hf/KpIuH3tgxz78Lzw7Fp295ObeiTPPtZQxv5IQfnPSiz7LPB/7mbUgE1yO0bLthRZ2b 3CDoLp45CDBUf9rC4rBLQEv4kZ+/vvdPAOziDpYMu2RLi8I3n0XXEefR1UHd2uKzqLNU mOuegFSDRw91i8fNDdFD6Z/nomg1QnO4Dnu0JQQOU8VzCbWs+Fdy4rAqumUj6fRFhec6 XOASYHhEd7Zc6f/f0nJR6uTObFkdB7ofvXcLmBhYnqyDp2+PszadmBqI7i2c/wrMUZqW kUcg== X-Gm-Message-State: AOJu0Ywkfrhg6eT/ci3LwSpg+DbWlD7FTAGDMuBBTkT9g8l4cWiAJK+k 0Qf+djxiurezi2M2R4BX/Rw= X-Received: by 2002:a05:600c:3790:b0:40b:5e21:ec3c with SMTP id o16-20020a05600c379000b0040b5e21ec3cmr8387726wmr.110.1702937916252; Mon, 18 Dec 2023 14:18:36 -0800 (PST) Received: from debian.fritz.box ([93.184.186.109]) by smtp.gmail.com with ESMTPSA id d9-20020a05600c34c900b0040c2c5f5844sm86928wmq.21.2023.12.18.14.18.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 14:18:35 -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>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] net: phy: Support 100BT1 and 1000BT1 linkmode advertisements Date: Mon, 18 Dec 2023 23:18:14 +0100 Message-Id: <20231218221814.69304-2-dima.fedrau@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231218221814.69304-1-dima.fedrau@gmail.com> References: <20231218221814.69304-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: 1785659885175363025 X-GMAIL-MSGID: 1785659885175363025 |
Series |
[1/2] net: phy: Add BaseT1 auto-negotiation constants
|
|
Commit Message
Dimitri Fedrau
Dec. 18, 2023, 10:18 p.m. UTC
Extend helper function linkmode_adv_to_mii_t1_adv_m_t to support
100BT1 and 1000BT1 linkmode advertisements.
Signed-off-by: Dimitri Fedrau <dima.fedrau@gmail.com>
---
include/linux/mdio.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/mdio.h b/include/linux/mdio.h index 007fd9c3e4b6..322c7a5092e4 100644 --- a/include/linux/mdio.h +++ b/include/linux/mdio.h @@ -408,6 +408,10 @@ static inline u32 linkmode_adv_to_mii_t1_adv_m_t(unsigned long *advertising) if (linkmode_test_bit(ETHTOOL_LINK_MODE_10baseT1L_Full_BIT, advertising)) result |= MDIO_AN_T1_ADV_M_B10L; + if (linkmode_test_bit(ETHTOOL_LINK_MODE_100baseT1_Full_BIT, advertising)) + result |= MDIO_AN_T1_ADV_M_100BT1; + if (linkmode_test_bit(ETHTOOL_LINK_MODE_1000baseT1_Full_BIT, advertising)) + result |= MDIO_AN_T1_ADV_M_1000BT1; return result; }