Article View: linux.kernel.netdev
Article #20449Re: [PATCH net-next v4 3/3] net: phy: dap8211r: add PHY LED control support
From: Andrew Lunn
Date: Sun, 22 Nov 2026 15:29
Date: Sun, 22 Nov 2026 15:29
16 lines
8958 bytes
8958 bytes
On Sun, Nov 22, 2026 at 04:18:56PM +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:
<f9c736ea-0c8e-44b7-8f1f-1f62aa038987@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-368727-linux-kernel-netdev=dewy.ruReferences:
<20261122131900.2951586-1-a.shimko.dev@gmail.com> <20261122131900.2951586-4-a.shimko.dev@gmail.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-368727-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v4 3/3] net: phy: dap8211r: add PHY LED control support Date: Sun, 22 Nov 2026 16:29:40 +0100 Organization: Usenet Network Message-ID: <f9c736ea-0c8e-44b7-8f1f-1f62aa038987@lunn.ch> References: <20261122131900.2951586-1-a.shimko.dev@gmail.com> <20261122131900.2951586-4-a.shimko.dev@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3667269"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:8QeU6aD4Nz616PtSZaiHUg2KL54= sha256:cL+ajTBvMY0YoJdKKDyDd/NgRaoqKBBvc1wDPiTpQcw= sha1:XSPsr71eXE1OLqaUE8TjXHzAJU0= sha256:C3OfFpt6D1jlKIn92eU0QMERJaJrIYcE//IgSBt+mXM= 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 41C8A125D80; Sun, 22 Nov 2026 18:30:28 +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 Gc0e6WKEL_-m; Sun, 22 Nov 2026 18:30:20 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-368727-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 0553C125D7A; Sun, 22 Nov 2026 18:30:11 +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 D5E7B3059D; Sun, 22 Nov 2026 15:30:09 +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=1795361409; b=p7rwQxnTDKufop+D9Uo+hh0pyI39aUwkTdJWgCp8mLCLngK8vjdVyll05CdwxN2gZWRu boZbS55/dqaNIfSFAXytLglC2OVLUJ06Vtk54MAbdXR/C04cqsbBf/srAHc/g0TrDZJFj 4Sr2AQ8VV6B94vSHU7SbN69Wyub8QBPZux7yhh/+9wtJgiJN3uDiiX+o4LkXitaKAo8U4 OMWkaVMhaI9gMI1p4L2z9eqQDlABaOjfVkeyqRNmMG48c0c1JhXC4JHEu3VKo4ycGpSfu 4DdQ2k1e+/1CwYuexBW6DQ9DvgEbYf6iT8YcHT297n8jY6/Zb7dH/7tnhUgbSQNTK2g== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795361409; 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=20Y/fHJbrgGxPVB4aZEd+tb8QnnZgYfIRFUWAPlj9yc=; b=bZ8ukkPlVdX6U46JTqW+FcaWEgCS1SoEuR3+tE7HbGw/BpDRHc/5b4nHQ5movhH9QXrF cxt30GlkxIaRlVJNl7sh/NvOC3ZGrWubeTPN+G4/mgnCDlwWQGLPkmtmlihIoTccxN5MA E/EzWn6Xc33bGZVMccuxpuIY3GsXtTboNWJgKgOGigyDmV3IHfFXlCrxY1goGhhEhjwFO PyLc3OnHGEUc9Kl8WNwNw/7cVfB0ycxPgB3QBZqAIuThCVX6oxzduWGHYtnS+Ejl8yFFO xISLWIyf9g+QtNKcWNVkva4Xru3oZqdFpk5+bWmozXvkeKNinHzTxlgqxADf9F/CESw== 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=cVyc3WqH; 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 A599E606A330; Sun, 22 Nov 2026 15:30:09 +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=cVyc3WqH 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=1795361403; b=gFKgqbda/SfAekBxy+7UNnIn4Bc/r/HwzIvUu9UF9bWhzFOzj2nB0b4g/Rv3fSABbCq/ UD7dBL1s3Ix4TSyU5fyLLapu61ikr4H9bDAZN7c7s7LP13sORnjRh0f3BpJsclzjfK7hk 8N0yfY1fGKSD5mRcUu/vz12xZbwlsTwNmTIfNAg+59E5X24SIH3zaEmi+C+54sajCqovQ dq1snFDetlVPJsuiYlBmiAzEsjmNk6A+JlgDUtVkKs3PZU4K+MlLgSA/1XgVxR0RoWk88 T1u46xLOYIPgNizzf+9K0e+QaO+TR02D/78uNYS/lj7IC+n9O8SZ0ZAoVQRmwDKzoOw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795361403; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=20Y/fHJbrgGxPVB4aZEd+tb8QnnZgYfIRFUWAPlj9yc=; b=apYir0vJfBjTKrXm51WKSKIj43URffGgnyyOPk3Zz29dfl/u2M1Zte11jkXpJNfK2OlN Bswm+pEY8IPEM7pJbNd9OOMmKX499M/FnAFKJaxNVshNghu5cK2PpKlxWpWsYa3B+bEJR Ipq4JA2Z8WERQ8AKzZhkgEXRXxYJxgDnwmtFWEX1FwEkKPW2pqvsRvIKpqU4QCSlNkO45 V7/Q47tzrztAMkDWv9+PP1WsfTfcr6Yr1vRxXEHVAc/kxooP5Zdd8DYatml2LLwz5T7sZ 9FN760KXL4rlav4achUB/azba8CO/YQfrPXnn/Oh6VHXKQHVRLOGnRclKCpiIlmTb6A== 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=cVyc3WqH; 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 2F45D606A320; Sun, 22 Nov 2026 15:30:02 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2F45D606A320 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=20Y/fHJbrgGxPVB4aZEd+tb8QnnZgYfIRFUWAPlj9yc=; b=cVyc3WqHhc0P187aglWwbk/wiF D1BjjI6WleZ5VxadNEDVZFo0y2BnCwswzyUREvDRlGa4RcBxQJ1ce98L/96gGpR5kjr8rJ/umXCdi AOe/PYNzaW2hrTFurJkfpHHVtK+b/c3jdNSXPRe2LejM0cUIpV4V611b75W0Z5zpDLf0=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xV9Vc-000aRT-Sp; Sun, 22 Nov 2026 16:29:40 +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: <20261122131900.2951586-4-a.shimko.dev@gmail.com>