🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #24544

[PATCH net-next v3 2/2] net: phy: motorcomm: add missing trigger link for YT8521

#24544
From: Chukun Pan
Date: Mon, 30 Nov 2026 10:00
31 lines
8296 bytes
TRIGGER_NETDEV_LINK is available in led_hw_control_set,
but missing in led_hw_control_get. Add it.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
---
Changes in v2:
  Collect Reviewed-by
---
 drivers/net/phy/motorcomm.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/phy/motorcomm.c b/drivers/net/phy/motorcomm.c
index e0c6477a53e4..27aee44a420f 100644
--- a/drivers/net/phy/motorcomm.c
+++ b/drivers/net/phy/motorcomm.c
@@ -1919,6 +1919,11 @@ static int yt8521_led_hw_control_get(struct phy_device *phydev, u8 index,
 	if (val & YT8521_LED_10_ON_EN)
 		__set_bit(TRIGGER_NETDEV_LINK_10, rules);
 
+	if ((val & YT8521_LED_10_ON_EN) &&
+	    (val & YT8521_LED_100_ON_EN) &&
+	    (val & YT8521_LED_1000_ON_EN))
+		__set_bit(TRIGGER_NETDEV_LINK, rules);
+
 	return 0;
 }
 
-- 
2.34.1
Technical Details
Message-ID: <20261130100001.3346131-2-amadeus@jmu.edu.cn>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374089-linux-kernel-netdev=dewy.ru
References: <20261130100001.3346131-1-amadeus@jmu.edu.cn>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374089-linux-kernel-netdev=dewy.ru
From: amadeus@jmu.edu.cn (Chukun Pan)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v3 2/2] net: phy: motorcomm: add missing trigger link for YT8521
Date: Mon, 30 Nov 2026 18:00:01 +0800
Organization: Usenet Network
Message-ID: <20261130100001.3346131-2-amadeus@jmu.edu.cn>
References: <20261130100001.3346131-1-amadeus@jmu.edu.cn>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1399032"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:uNOsmGRBFZLzHApgN8nYhj970qU= sha256:1u8QuoBTcEI/Bnx4lPKBr+rVIy/3UnkBlBllX0VC0HE=
	sha1:8yN9aKZEKmphzZE6m+i4zsQs2HI= sha256:voECAik7Su6BoGN682MLKl/ugm2dlhBwYZHaYfDR/xk=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id E474E125FCC; Mon, 30 Nov 2026 13:00:43 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id g3nXQkUOI6e1;
	Mon, 30 Nov 2026 13:00:36 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-374089-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=jmu.edu.cn
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id B4C00125FD4; Mon, 30 Nov 2026 13:00:24 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 56D636012D3; Mon, 30 Nov 2026 10:00:23 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796032823;
	b=tnMoVWCmt8w5JiV7ECK9JKoClvisYkexXalmpCzn2PcUA2bCmdKsh8lePtna84gyqmjw
	 Mq6Bfkavw7bQ994Ypvr6LqsYjcZEqFiBhfz1B6TMlUB7fL4qlnmpttuMBYekqTGwCrLB9
	 OggAdUNjfmivtRxfPAlUY7H+cMl4dLAdnEnEWsYiDGom8qBbRM1S6XkmjA3XgfGEfViNQ
	 IpQkQL9/b8wWTVriT9bVAtyFvrbuWA0K8Pr5LhdX1oIL2E4upvFUwj3cnZrRUjlferOku
	 pMv0n2ajumwmOhCvMqg15m8RROzqKR1skrKmvENhtyHjDkyS8XqVHvgPho4RYBKXJfQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796032823;
	h=X-Original-To:Received:DMARC-Filter:Received:From:To:Cc:Subject:Date:
	 Message-Id:X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Transfer-Encoding:X-HM-Tid:X-HM-MType:
	 X-HM-Spam-Status;
	bh=jZkmOb5b7uCobSb/QrIDnmcsaiVmF1pM0KXVgFPXw38=;
	b=l14hwiyexBmYzhbFbZ5FLzY22J+Ka3cnLq4a0Mhug04CdoqV8s97fvP+wOBMNcyic2/a
	 vt3guYsS8dNmXtjNzO/OCtvhvwKlyNRV+XWvOX77Rc7jpCv6dD4pSQ9821HGxNpOOYlSR
	 HBesBj9+SBUPOb3vB3HXDswaxwbtYh30ukypsEcaYrBEeP9wMwSEbgqCmCqoleAFaC6Ga
	 Ol5EpTjt6zfSbJSvohF/NKFVMzGFmwQ2eB0fPx290GvujXCWmUQNJFPYov5mgp5+iGQqp
	 GJOdZkNhptkzf+4UMajU9joh4MTmGtY2DhasGl4vhIbPNsQztRZ6YSwKH77Jw8iF6yg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=pass header.from=jmu.edu.cn;
	spf=pass smtp.mailfrom=jmu.edu.cn;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 004B5606A32F;
	Mon, 30 Nov 2026 10:00:23 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=45.254.49.197
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796032822;
	b=O08EZcWfOiorlQx3r5qNIwe3qX7P6VUhn18t54V/Q+rednzfOQgV0gJuRHWETYMGz65e
	 sEu2T+Rzs9QUdIyG5h8TAZ6bdGwyespGF6PHyRTGCQDnobtm0aX9DSUQe9t4S4CReG49R
	 Zv0xOb/34UzErrnmdERxTkPZV8zWDBkDtkx56ECWrpm/9oQ/h6t7A4fgghLjhecS4nFbi
	 OX3msp34W9T1NQlJnXUBCA+Nmloy2+8NZ1S3qufJM8Mu+jiN4HuK54HtSJ7zJF+13e5ov
	 1HYs1iSjQxgHD55mj8yNDcSJQCS+PSApAGWen5e36z2yK09jJNYWQSxemYNmLga791Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796032822;
	h=DMARC-Filter:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:
	 In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:
	 X-HM-Tid:X-HM-MType:X-HM-Spam-Status;
	bh=jZkmOb5b7uCobSb/QrIDnmcsaiVmF1pM0KXVgFPXw38=;
	b=TNKq1WINvS/HxXAlP40oUy1TjzGlmRwQ1/LzXg2oLfPFeZJpGqV5LBjV5LIj9wUQtLlH
	 lZsHpbISPg27BWDOZDNplyYvAEfYyFmn/k88twyVbv5ZKZbpeSfDcOSIPekA7VtA6dDC3
	 PJkT5PxjPCcawXmARaq+ZVEw0jwKN+bc4X/LC+XPVoEE7ET8/ZX4F6qy5Cmjn1iaP9A6i
	 RnCZNMAwaVPUbepYsFE4XTIQZF4tN9ZceQNMlcm84sKzyKJbeF+ps6goAUQX7gQUojJbp
	 /Zz4DzhRW1H4aAYopdBJPnzT8iHWGEC6l3Rm2LrvwoNSnhbUj41NM7VyVnPbS9L4sZg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=jmu.edu.cn;
	spf=pass smtp.mailfrom=jmu.edu.cn;
	arc=none smtp.remote-ip=45.254.49.197
X-Received: from mail-m49197.qiye.163.com (mail-m49197.qiye.163.com [45.254.49.197])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D310606A325;
	Mon, 30 Nov 2026 10:00:20 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3D310606A325
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jmu.edu.cn
X-Received: from Vostro-3710.. (unknown [14.220.232.40])
	by smtp.qiye.163.com (Hmail) with ESMTP id 56806b044;
	Mon, 30 Nov 2026 18:00:12 +0800 (GMT+08:00)
X-Cc: Andrew Lunn <andrew@lunn.ch>,
	Paolo Abeni <pabeni@redhat.com>,
	Jakub Kicinski <kuba@kernel.org>,
	Eric Dumazet <edumazet@kernel.org>,
	"David S . Miller" <davem@davemloft.net>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	linux-kernel@vger.kernel.org,
	netdev@vger.kernel.org,
	Chukun Pan <amadeus@jmu.edu.cn>
X-Mailer: git-send-email 2.34.1
X-In-Reply-To: <20261130100001.3346131-1-amadeus@jmu.edu.cn>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-HM-Tid: 0aa22be5d4da03a2kunm2291d12143cca8
X-HM-MType: 10
X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly
	tZV1koWUFITzdXWRgWCB1ZQUpXWS1ZQUlXWQ8JGhUIEh9ZQVlCSU4aVkIYHUNJSB9JS0IZSFYeHw
	5VEwETFhoSFyQUDg9ZV1kYEgtZQVlKT1VJSUtVSUhJVU9LWVdZFhoPEhUdFFlBWU9LSFVKS0lCQ0
	NMVUpLS1VLWQY+