🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #23934

Re: [PATCH net-next 3/3] net: dsa: lan9303: add LED mode configuration

#23934
From: Andrew Lunn
Date: Sat, 28 Nov 2026 15:59
13 lines
9177 bytes
> At first, I thought that the fact that this PHY has a single field for all LEDs
> function would make the vendor property somewhat acceptable.

As i said, it makes the implementation messy, and many of the blink
modes are going to end up in software, but it looks like the standard
/sys/class/led API can be used.

I would try to document an a simple to understand way what each LED
can do in hardware. That way users can try to keep with the hardware
offload cases.

	Andrew
Technical Details
Message-ID: <de94e9bc-142f-4e3b-8bf9-b2c2c56e3c27@lunn.ch>
Path: mbox-mo1.pugleaf.net!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-373206-linux-kernel-netdev=dewy.ru
References: <20261126-lan9303-leds-v1-0-a96731317859@bootlin.com> <20261126-lan9303-leds-v1-3-a96731317859@bootlin.com> <4d2a5db3-2829-4383-8f8d-05cf7c94fddc@lunn.ch> <DN627T3YFWKR.2YJE24R4DRSDN@bootlin.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!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-373206-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 3/3] net: dsa: lan9303: add LED mode
 configuration
Date: Sat, 28 Nov 2026 16:59:38 +0100
Organization: Usenet Network
Message-ID: <de94e9bc-142f-4e3b-8bf9-b2c2c56e3c27@lunn.ch>
References: <20261126-lan9303-leds-v1-0-a96731317859@bootlin.com>
 <20261126-lan9303-leds-v1-3-a96731317859@bootlin.com>
 <4d2a5db3-2829-4383-8f8d-05cf7c94fddc@lunn.ch>
 <DN627T3YFWKR.2YJE24R4DRSDN@bootlin.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="982360"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:1feyhLpuC1sM8arLYHNeeiubj6I= sha256:429X1GfKmppu1vy8yG2L3KCs87BGe1k744x0Ck6b/cg=
	sha1:1YJMJMRD+R2fsSLJi3tyqhmmoZI= sha256:G5BtoiAyWYTgO3ElO24QUMcwx5kxfZ4tpYBPbB3kHMI=
Content-Disposition: inline
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 01DA9125F83; Sat, 28 Nov 2026 19:00:24 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lunn.ch
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 5vg0XzYUlYuE;
	Sat, 28 Nov 2026 19:00:18 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-373206-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 0D520125F81; Sat, 28 Nov 2026 19:00:08 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id D0F0E273A1; Sat, 28 Nov 2026 16:00:05 +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=1795881602;
	b=AAqG2NCT782NKbBkEXCMwzWP6tW4BU+V10r/6jLGd5w6RS/8smwMu8bFwPneDkAj1Mlx
	 Z0S7Y0tDhWfnVDM801ZEHmci505/KSys6XbcZHojUfRX+k4vT4Hw+kIlIDyuTqkH3op/H
	 Ai7s1Eu71u4psk91nPSJrJbQJt/g/Yv5pb8YgAMC6hA/IAZoV+IoUPlDwokGFzxQGdnWG
	 U6PiqrJrowmDMHqEiNiA16Gn5qFM4ntNGjX5BhaFpGL+Ro4441PDfJInAvqJA4+PxxsE/
	 Tg4FrpWULVceaE8FhKolBcAEJHi5pGipPZAbaDsh69Ju6KGTOIUgckV1Z8qzlYxsJBg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795881602;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=VDZlYT62DLMq4/bV/vxxwJ3hSgltztB3YVXdaM0u9JI=;
	b=kDE6gaMo7GXE7PMQifE5y+tt+PWn2RZ52jBsd4kr5ZuvypbrOxXzl64jEKjivb5I3/y2
	 QVbMi18dOjVB9FNfAIN0iK/TX7s0LZL4jxaWa9S6IftqrK/0OEZVT0eb1SBgbzDG3+W+b
	 rWaqIbQKBCQLVIuejZ2kbVOMRsgZQykd0Uf9T9hU4hvUL5WzLFIfK9flyBZMJwVRGldgf
	 aOdP3oGiTn8VCbFFv6tdjUOHU+8sNK1PVsas4w/YKk+/fb+NbbXVbT9Ho49JbYLJHS1BB
	 81KaTLa0qFwrtu5OmE8aTe2N/VhT6HVj5qjHo5f+9V4cCk7NHoYgjS4hCDRcYZkeTxQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=2CxxdLkO;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	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 D4997606A33A;
	Sat, 28 Nov 2026 16:00:02 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=2CxxdLkO
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795881602;
	b=sZ3DoECiHxeyJLLotNeR3VWgBUw5l8KtvLRMHcOQ51xIFoZGGKq/0iafGcIurUkg2uho
	 27av/e14p5DXoh9kyikyfUKSpu8dAcQg8bcVSNb1a/QN+T57O+OR7UartquLrOukk/AdN
	 t9D80q3DVrAhy/4SxQ+/Hl+slfQYMpIP/CPMpL+/ABs3SHSQoTmsUll8pnlzwiPg31fG4
	 OY9P9wxJEIOSwNWbJ1wtSqUQpNFXO7F5C5Z6hnyb23m2g4egX6fedSxxwwzCOziuvEI8n
	 tQD83n4y2E0J23OQCAtOqHcN3zU6yQbnyFz/oMZ0CcQVePdyrzA810bWmkpL4QreDhA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795881602;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=VDZlYT62DLMq4/bV/vxxwJ3hSgltztB3YVXdaM0u9JI=;
	b=pp+A8yLKPRFWIgQiiDm8wE4M9Sywp0c5uYA7Cw4mgun1DEXIr5a4wDjmpJ0qxKDfIMay
	 +PIte3NwZE0BPcaNWLDi1xejfU0mA2AzHYmmva+H+isskKYJ1k4FAhkWTv+SVqT2vUOoD
	 fsnZfpHWrzl1aXFr7GDQ83k9CPSiOUixbyvmNOxioGtvlf6JSX6hOQ5FsTNaGhrp5mYqH
	 SC8Q83wnhdL4qTu6ZcXo8GG+upNv7EKE54oS1dvOg8ZsvQebCaOoWADYdfqSKsjiSEvAp
	 mqtEeJzK/npfxQzl5oSxwgiELidxypyR0r2jSqaHpu8Ad3DF73Q4ksgNQwLTaVhCjKA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=2CxxdLkO;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 210A1606A324;
	Sat, 28 Nov 2026 16:00:00 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 210A1606A324
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch;
	s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:
	Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:
	Content-ID:Content-Description:Content-Disposition:In-Reply-To:References;
	bh=VDZlYT62DLMq4/bV/vxxwJ3hSgltztB3YVXdaM0u9JI=; b=2CxxdLkOoxRth1lz6jYvoBrNj5
	V1XvifqHJ4/7cb3lsAuw826RLA/oYduRgXEG9wrdkmCfM0KFNJyzaWw7FOj4lGwnrRAzIgNl073lG
	cgwUpQTcR4i+BnJIps2gvl45uYrsoxLeMjG+sic4Ag0HNPAGCf7GN29kNYkOwe/HsR7M=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xXKpu-0020FX-7v; Sat, 28 Nov 2026 16:59:38 +0100
X-Cc: Vladimir Oltean <olteanv@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>, Frank Li <Frank.Li@nxp.com>,
	Jerry Ray <jerry.ray@microchip.com>, netdev@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	Bo Mellberg <bo.mellberg@se.com>,
	Pascal Eberhard <pascal.eberhard@se.com>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Miquel Raynal <miquel.raynal@bootlin.com>
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-In-Reply-To: <DN627T3YFWKR.2YJE24R4DRSDN@bootlin.com>