Article View: linux.kernel.netdev
Article #26877Re: [PATCH net-next v3 2/2] net: phy: motorcomm: add missing trigger link
From: Chukun Pan
Date: Fri, 04 Dec 2026 10:40
Date: Fri, 04 Dec 2026 10:40
45 lines
8809 bytes
8809 bytes
Hi,
> Fixes: 355b82c54c12 ("net: phy: motorcomm: Add support for PHY LEDs on YT8521")
>
> Should that tag be added?
> Adding a Fixes: tag would also mark the LINK plus LINK_xxx issue below
> for stable backport. It may be worth resolving that issue first.
No, its absence will not cause an error. So there's no need for a backport.
> The code just above still sets TRIGGER_NETDEV_LINK_10, LINK_100 and
> LINK_1000 for each enabled speed bit. When all three bits are set, the
> returned rules become LINK | LINK_10 | LINK_100 | LINK_1000.
>
> Does ledtrig-netdev accept that combination?
This cannot happen. 'link' and 'link_xx' cannot both be set.
> A bootloader or hardware default with all three bits set would read
> back the same way.
Write to the register to simulate this state:
# mdio xxx phy 1 raw 0x1e 0xa00d
# mdio xxx phy 1 raw 0x1f 0x70
> Once the netdev trigger is active on such an LED, wouldn't these writes
> all fail with -EINVAL?
>
> echo 1 > tx
> echo 0 > rx
> echo 0 > full_duplex
> echo 0 > link_100
> echo 1 > link
These commands all succeeded.
# mdio xxx phy 1 raw 0x1f
0x2470
> Only "echo 0 > link" would succeed. Sysfs would also show link=1 together
> with link_10, link_100 and link_1000 set to 1. The store path itself
> never allows that state.
So this problem will not occur.
Technical Details
Message-ID:
<20261204104040.1337202-1-amadeus@jmu.edu.cn>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377257-linux-kernel-netdev=dewy.ruReferences:
<179612269042.3146.16320045925624198098@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377257-linux-kernel-netdev=dewy.ru From: amadeus@jmu.edu.cn (Chukun Pan) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v3 2/2] net: phy: motorcomm: add missing trigger link Date: Fri, 4 Dec 2026 18:40:40 +0800 Organization: Usenet Network Message-ID: <20261204104040.1337202-1-amadeus@jmu.edu.cn> References: <179612269042.3146.16320045925624198098@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2743012"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:vGdMenQtQ8muNVdC+qoAX3LISPQ= sha256:CL95ubofSe2iKLAa006zLZaCvEWgsQJR2/TNcGx1UYE= sha1:uGrvrbSzVHZdMKrFLF6G3QCxyNc= sha256:UmNjpfflD/hKWJPKxtQdq0WNJt5kVfPhFiNf1kXBXh4= 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 03C31117BA8; Fri, 4 Dec 2026 13:42:22 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.199 X-Spam-Status: No, score=-3.199 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, 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 7mZSxIwvLdca; Fri, 4 Dec 2026 13:42:19 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-377257-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id B8BDF117B87; Fri, 4 Dec 2026 13:42:14 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 486D72FBC7; Fri, 4 Dec 2026 10:42:11 +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=1796380930; b=gqe96mQg1Xz8QLh2d2UctyvusDodXHpOL9H1ns2icf2B9pRnJmtxBast+qfkDA+cwl66 YpYLtm1mFNsyyHtXJCGsVZ58gXjAJyttZpQ/Hy7p3oP47YLkIEpaHnf4l9G1rYgkA7K2X DgoOKhpcdSI9antHALw6/imO9IKE23MMbRuCtrBxwj6oVQ0Y2oqxSazvpw8eGDhXHLd9O Nc7k0uxUJ6emcxeHjxAQte0WSY/soWno6keGJ+AHDCwfP+QQ03SAiZlF1e81D858cTG8a r4kJLt7uutZ/uSM1MRseWFLC45fFNRbrCg9QhKsN6yCEhM7/zGWiENPMEQqCOklAn8g== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380930; 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=uD8nPuoZRALzPp0w28Mk4tSOJ74d9TejsdPHDoxhmwk=; b=tPzAB/Mdy0LQiEOYcZE0+oE16hFs9iIvPcWdhBEaxuIS/LnLWHa1jIdJ7IYU0gt9wh5e 78jK6thn1bN/xQHXyHIMoNT/P6Hp5g2R6iEbBF4wTONsjO26HIONESk7tf+ywq7z6Gybs 8Gxhv4DXYpvDTSJkaW8XRYlCyvoUJ2K7onIdcRsLYHW4UcaFkuFEMsMnssz6nnNL3HVyl wjbSflbKydDTeGKc8Lh2TH2fdY1XvKWJMzISGbLKeZKFUdUFkLq0sYCTTEZrywtLfbNdD e0VNtWtsKLkriz7q8+w/obwbcuv5mFagI7yDDClcvZt3oVvMlba3XfJKT+gLatiAPLw== 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 B5111606A33C; Fri, 4 Dec 2026 10:42:10 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=101.71.155.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796380930; b=gV1THgDvuES8f3HO1tjtIR9U+iBvYQOfr9qJxEe1jf9Lfm2FFUuJWje6Np3dDa/1qtpe q3jHkx8p2Jb4r1m+Fw1CkM69Bx5iqehk5uGUEDkChiBwSFnfeA+m0gqTNohOYjGsQ8g5G ndsCUTaU379aQgz4gkLW+PLTM7vSiK4AXKRK2ImzXxweskVofLYojPkFANkM9EDzI4Cyk FfF6ti/ErWAlNM1TWE65mBx1+nztqT8B96nbNHub2+LfseCcEvo/QWZEHKf6LgRx5yQ4I DuxLp0mw/8gONNh07+1frSKrgG4YfexvHESFtvVeJ/hyKKExYjOMj7MOo5SKzDgeLRQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380930; 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=uD8nPuoZRALzPp0w28Mk4tSOJ74d9TejsdPHDoxhmwk=; b=xxbWu8YyUSmc+ig13GNsLKZEryu/sxPikg9ahAy/Wvw6UiSwa74Vhzi1cdaHQ6NYtVYi k+6oKvd5XKbQPDAek+GiIyMrly83IBab6xmzQWO3VOwEUIXU88W4DnAGV9bNTHPROrnwp 31R/WPX7tdiHUPy9Ngp3rwTcZ4jX0IjTcmUqcQJ3fu8Zp+LC67o4Htud1LStqWs029QKq Ac3rkdZSWvjldwObADK3jtGSVoPk7C4QChnymPlprE/4PfOxjrAtrej2stU1EMAT0ccw5 SpCFJjX8SzYF9U5gacvb5uH/18ySRXhZQheLEaJz8GXZB/D4X6afXLYvKcGNAAUL5Zg== 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=101.71.155.101 X-Received: from mail-m155101.qiye.163.com (mail-m155101.qiye.163.com [101.71.155.101]) (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 806F2606A32C; Fri, 4 Dec 2026 10:42:06 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 806F2606A32C 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.lan (unknown [14.220.232.40]) by smtp.qiye.163.com (Hmail) with ESMTP id 571f7237a; Fri, 4 Dec 2026 18:41:57 +0800 (GMT+08:00) X-Cc: Frank.Sae@motor-comm.com, amadeus@jmu.edu.cn, andrew@lunn.ch, davem@davemloft.net, edumazet@kernel.org, hkallweit1@gmail.com, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com X-Mailer: git-send-email 2.34.1 X-In-Reply-To: <179612269042.3146.16320045925624198098@kernel.org> 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: 0aa240a57f0b03a2kunm16ea373d3daad X-HM-MType: 10 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWRgWCB1ZQUpXWS1ZQUlXWQ8JGhUIEh9ZQVkaHxgeVk0fThoYT0hKTkNOQ1YeHw 5VEwETFhoSFyQUDg9ZV1kYEgtZQVlKT1VJSUtVSUhJVU9LWVdZFhoPEhUdFFlBWU9LSFVCQklOS1 VKS0tVSkJLQlkG