Article View: linux.kernel.netdev
Article #16365Re: [PATCH net-next 3/3] net: phy: dap8211r: add led hardware control support
From: Andrew Lunn
Date: Sat, 14 Nov 2026 15:13
Date: Sat, 14 Nov 2026 15:13
14 lines
9183 bytes
9183 bytes
> The LED_COMCON register does include "force-on/force-off" bits, > but i have intentionally chosen not to use them here. > To be honest, iām not yet convinced that they need to be added. They allow you to implement set_brightness. That is ideally the base for all LEDs, being able to turn them on/off. If you can do that, all the trigger can work with software driving the LEDs. You can show the heartbeat, shift-lock, and all networking settings. Making use of the hardware to blink on network activity is an optional extra, reduced the CPU load etc, but just nice to have. Andrew
Technical Details
Message-ID:
<43b83555-df27-4b8b-a1d4-bf0cd9c46893@lunn.ch>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363333-linux-kernel-netdev=dewy.ruReferences:
<20261113110546.173624-1-a.shimko.dev@gmail.com> <20261113110546.173624-4-a.shimko.dev@gmail.com> <8ef5b0a7-58f6-4c62-8153-6a9c8d3703f7@lunn.ch> <CAOPX745=Mx9Q+Wijt9+=Mmjtdk4fsenEeV2h0gPCvNpqc8kN=A@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363333-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 3/3] net: phy: dap8211r: add led hardware control support Date: Sat, 14 Nov 2026 16:13:09 +0100 Organization: Usenet Network Message-ID: <43b83555-df27-4b8b-a1d4-bf0cd9c46893@lunn.ch> References: <20261113110546.173624-1-a.shimko.dev@gmail.com> <20261113110546.173624-4-a.shimko.dev@gmail.com> <8ef5b0a7-58f6-4c62-8153-6a9c8d3703f7@lunn.ch> <CAOPX745=Mx9Q+Wijt9+=Mmjtdk4fsenEeV2h0gPCvNpqc8kN=A@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1597039"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:5E3dxpTCQVMuIdJmjItmv9MaWUE= sha256:IHFLtrmBdIyjrG+lugGk7gjL8nW9cZW209jEe+Zanx4= sha1:TKxFxuZcP68Fl6Q+kMXrpiO1N7w= sha256:+X9wewDKAwLrMa9zhoB0k3RqsJAaWWPeP2UDemxxJiE= 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 42A97114849; Sat, 14 Nov 2026 18:13:47 +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 EjgzWro9JqGm; Sat, 14 Nov 2026 18:13:40 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-363333-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 0C8B1114838; Sat, 14 Nov 2026 18:13:31 +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 7A80033C02; Sat, 14 Nov 2026 15:13:25 +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=1794669202; b=N0jXYf9G3azzs5ISaOtD9KDIJZ8pUEwf8vv7hLqZ2c2sOzag99VGXNS4WqS6Zictrth+ rk11Z1C4otV6jBtShjNOiHl1TikJKBYlyPCxObciw+zop0nzcD72HEaCIj0a/oKnes3Ow 0wBDJWwDSG0MrARBvOkREF4UZzH1/L4IMsrCD7oRF/YLiMGjoH5txlm2Y5ryXV0IAbVOG sHT2PUM0ydN5o9H+fGMKFSl8QA+8schs4Uwye1dg8STZHzHH0q5StfOPg87Gb0rF9dnZr 6d9Zqt2EBVgvPkxNjzVeQH5QG5z/RE6q6ef2UOi6YUgsHx97q2lJwpVw/Err24fx8ow== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794669202; 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: Content-Transfer-Encoding:In-Reply-To; bh=wFqrOxAE0jUNhM0GP0+sz9CdX/wTyVhI9aY4WYVWrCk=; b=29O02w/saRg6jrBRCf7CKLP7rP2lBrkd7jZ4HduoOSV8ycJO6V2FiJz78l9AIDoeM0gT z1VekBzzDiR8DitYUeUiMz6UVGFqJOctPyGQzjkVdiJchS6rw3vaTil6GZQiEmf1PwXt0 IU5yW3EIlUOipdaZ5klLIvNzM+4TrtzPDJhM5Vk0u1/HwFBeXkckY+Lu4bzqtQNWRK9Rn oSSepsRNWd9v3dLHfjB51AJyJ7ONBaepGaMrpU85TzkEU4wCRM0rgZ8Ik0fsRHUaepTHJ 09qLC5n/aZTZ+ZeLwMy6k3jC/hzWE3j8eyZTJiP3swBlgCse17cD3DvEXS6vvp6CIfQ== 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=rxV9lEAd; 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 B093E606A333; Sat, 14 Nov 2026 15:13:22 +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=rxV9lEAd 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=1794669201; b=CUKoYp2U2MA8riAPF+LP+nMV+W4D44Dx8UjpyQz3NpcRur6rKLjffPj89gxfuTTWjaYK X8scJeT6rL5+ME+QQ4G4YhYNtaeCecBupbKAdrOHGmYCtEcUBTy13we/Qwk8qUtuwJ9NM P+XJBmQe6x2ZDzGfH0gKJM2oiToQORWWe8POHecG38R2vGDgrNb/iL2niiVDiXEUHc3nr VN87xH45GizEOtOvIVqVAnpc6EGDIIZ6J0AQ1TzWkUEKjD//X8M5ifaM0l7UnIMgwW1k1 QcQapJgK9hWHMsVarSjU5u5hLYUUDrB+obyqRcJ4zXWS4VNdpcHi1ilztzTwoMXKzDQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794669201; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=wFqrOxAE0jUNhM0GP0+sz9CdX/wTyVhI9aY4WYVWrCk=; b=Y/ZQ6YUsthQjMi0zf7k20mrFOS1z2dOLtMrDeCFGplOuy1o/XQQy6o5IkzTQJEF8grde X0aA59hbB7fXqUbal0klMmc5qGqCuig0naB6qsg6e3ZhL/8XI6G9dt5zFOxl6BFEOO055 2mu4Twy2Gj6X08s7k6VHHsaHNiVTA4xzFVF2wf857ZKMaU6xTO0Yow5YXzVCXSrLCqyq6 oWaFgnh1YJvMHRRh1cTJB4HX34EDt65drwkoR7pFhiAL3NcfzexAagNYPkI2EfCNTyogf 5coFUR7A24SODkE8rqn5WpJKuPOBLmGq/LtEMOPJSZ55hWRUX198YRLvQOxdThTDwtg== 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=rxV9lEAd; 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 8B9E7606A327; Sat, 14 Nov 2026 15:13:21 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8B9E7606A327 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-Transfer-Encoding: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=wFqrOxAE0jUNhM0GP0+sz9CdX/wTyVhI9aY4WYVWrCk=; b=rx V9lEAdGc6BI4U4ve9yMhF/Gy8fDmqmDSkPB/55KhfjWbCD1cHOMBBUYtVsuavHvZjDqQknztMnD66 KDy39hzGhyk6iudARj17aZBUikihCS0/cUqDy6nYFrOSGUd34PEAKaDgk9Euwf8E3G1n/ffSbFVlS T7QVHcVmfVwYyM4=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xSFRF-00GViN-9n; Sat, 14 Nov 2026 16:13:09 +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: <CAOPX745=Mx9Q+Wijt9+=Mmjtdk4fsenEeV2h0gPCvNpqc8kN=A@mail.gmail.com>