🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22114

Re: [PATCH net-next v5 3/3] net: phy: dap8211r: add PHY LED control support

#22114
From: Andrew Lunn
Date: Tue, 24 Nov 2026 21:47
16 lines
8898 bytes
On Tue, Nov 24, 2026 at 12:49:12PM +0300, Artem Shimko wrote:
> Add support for hardware-controlled LEDs and brightness on the DAP8211R
> PHY. The chip exposes three LEDs that can be programmed to react to link,
> speed, duplex, and TX/RX activity or be driven via the force mode.
> 
> Add the dap8211r_write_ext() helper to access extended registers via the
> PHY indirect access registers, and implement callbacks for:
> led_brightness_set(), led_hw_is_supported(), led_hw_control_set(),
> led_hw_control_get().
> 
> Signed-off-by: Artem Shimko <a.shimko.dev@gmail.com>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Technical Details
Message-ID: <977f8fec-4cae-4003-b878-a7eb5aeee48c@lunn.ch>
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-370792-linux-kernel-netdev=dewy.ru
References: <20261124094914.2993988-1-a.shimko.dev@gmail.com> <20261124094914.2993988-4-a.shimko.dev@gmail.com>

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-370792-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v5 3/3] net: phy: dap8211r: add PHY LED control
 support
Date: Tue, 24 Nov 2026 22:47:03 +0100
Organization: Usenet Network
Message-ID: <977f8fec-4cae-4003-b878-a7eb5aeee48c@lunn.ch>
References: <20261124094914.2993988-1-a.shimko.dev@gmail.com>
 <20261124094914.2993988-4-a.shimko.dev@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="45530"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:rsRSE4FWg5PFvQesmegZmJE83Cg= sha256:SaOPqgyAHVsY3Y140mYlu8oFKIjbxIScQ3TRC9mXhes=
	sha1:SYm2fjzPa6BiGdIR/cSbZjBDg4I= sha256:+y4WCs/fZGI415eYV5lrxGpeyLT6nJKGmMBn5x2wxnY=
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 D1B5B125E35; Wed, 25 Nov 2026 00:47:36 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.151
X-Spam-Status: No, score=-3.151 tagged_above=-9999 required=6.31
	tests=[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]
	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 qVfulw7rYQET;
	Wed, 25 Nov 2026 00:47:33 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-370792-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id C3258125E33; Wed, 25 Nov 2026 00:47:22 +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 0005B606C87; Tue, 24 Nov 2026 21:47:21 +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=1795556840;
	b=GoobQXGL/Qqg0Xq4grGrQdWUPnJqmRidOs3UdPfj2OAEAbaVknb29D+h3SDMTs+//J/U
	 42AVfu1LFmIs7akhIEbIcrliwXomCH4OhOQO4P9Vufup3AmPCesuPAMR4RyAbhPnRnDNe
	 Oerq7ieTU8FPg2CJvCscSXf9ttwusjWCjsfZCNaRo/ZGc9BL4bU9AlcjvMfen9MvDZDuQ
	 BAGH/t6NFWUY5HWsVJuREFeUhwK5kTNusKXZspynS93nnb5IIsjoYDY7Lumgge7n8W/G7
	 xPJSOngvIRFP0sn45YfkRXa/hrSnYqLhIKU5JLKiAykRLngfIHNVLYbVKeCNK+7iqIA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795556840;
	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=rpReIrGydvNzZCx0HngqQAENODoBCxN0USwLpsBzZ8U=;
	b=F0Gz4zZ2mEr4aLHImo9n6JXiuukaCxpzg/LSXo7mgvk4iBcnWKavGX921bUZwT7Q9uLl
	 +c+5VeYNEI2nNtFHN9K2Zq+KrDFoTYkEBwDjwAQkpKBXJweeZq/tVlZsn2QKBsIQWhN+C
	 DyXilHaFSew3PVJckn8NzpSpoRquW84lEyZho+Ozh0pCG/o7/+NEBVagLW+5q4JyfoaAH
	 /UL/8VuQQiy/DBS5sKqcGew2FBDRmOl2vdXVX2eul5auUM5TJ7u3MCpkwOqYaFSeu8qEG
	 hWAxOPFZUtv/vW5akmdBthOMp8zfJCbCqLrxsXNlSpzpn0CvC/OsCQGMSTfdhMQHimg==
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=SrFAeI7e;
	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 245DA606A33D;
	Tue, 24 Nov 2026 21:47:20 +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=SrFAeI7e
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=1795556839;
	b=HN4aAKr55jkTOoB483SKYRP34/zLyS7fvDd06q8fnUM5zdXW/eBvZKzT7YBsBPHUmzzB
	 oef4BmgUQSuEWsmkyeXvpNoYPhtI7r67ckD1cMg7u3ekEOIQ9bk/KeI/A7Rynfx89q77M
	 0xrFRkrFJ/fKqEBzz0YErGZZUfWhrz89IuBg5lJDRxt25c7ENg6GF/WzkKJA6kFC8T9dx
	 LrQ8ZEKh4xHVwkKoUQYZMRf06774QLlaXIbgQArlg7uhUn+a4LK7cLYFPvtvgesDHnZwn
	 Y1dp2e2d5lVahvZYcjldviss0mLO5o20IlSYPj++KVGVh0BWDiChPSi65nIF2f+ySog==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795556839;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=rpReIrGydvNzZCx0HngqQAENODoBCxN0USwLpsBzZ8U=;
	b=Xq2EdSMeAe+efoLus1ahaUd4zaElkktey0VGvAC57h+Znye7QJxcCsTs0txZxBZ2/f7k
	 +7I8fxqfqUnKj6rNQVDOSy79nTOMgogHSI725YMPaBLCSqlha/WGuseBta0Xa/rzq68mg
	 Xm087rCBoeZV8WkRiTx7NZ1g9GWhIUlgBCjC3CHU04k6y7b3XkbR4IbxNX6Y6s86d6m1u
	 7ISDweCSa8euHb331mFchF7I1ACuE6NDV1VynT2jIDacsLwiSzahzdtjCR7kRopfUgzvH
	 e7ZvUK7xlG+7sl+iB5Oxo055mfNMtItuajgNhjVw4i37yo1MfFFjlRJ+E6gr9X+TUYQ==
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=SrFAeI7e;
	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 F192F606A32A;
	Tue, 24 Nov 2026 21:47:18 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F192F606A32A
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=rpReIrGydvNzZCx0HngqQAENODoBCxN0USwLpsBzZ8U=; b=SrFAeI7eANj+CDZC3B9NLqMQEi
	jdm0LHKbQz8KaNgknDt4iFPn+hOXCNF1noktuSda72KzjLtWyxvi326f77cApDcfMHr97VcFXkyjr
	xWIGFtzrGlS++Y9OLsCjZUfmKvwddbebqMWthi2jcPf+eylfvzSe6t3HsgU05p0sotEs=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xVyLv-001AmX-Mh; Tue, 24 Nov 2026 22:47:03 +0100
X-Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net,
	edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
	robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	maxime.chevallier@bootlin.com, pavel@ucw.cz,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	linux-leds@vger.kernel.org, netdev@vger.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-In-Reply-To: <20261124094914.2993988-4-a.shimko.dev@gmail.com>