]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: phy: mxl-86110: add basic support for led_brightness_set op
authorDaniel Golle <daniel@makrotopia.org>
Fri, 22 Aug 2025 17:38:27 +0000 (18:38 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Aug 2025 00:07:01 +0000 (17:07 -0700)
commit29c10aeb316072aacb9ef4d0ebd6e0c9b0461ed3
treef1e55856b94da8b2f78e25924b4ff67f64f65a55
parentb8844aab519a154808dbce15a132f3e8f1c34af6
net: phy: mxl-86110: add basic support for led_brightness_set op

Add support for forcing each connected LED to be always on or always off
by implementing the led_brightness_set() op.
This is done by modifying the COM_EXT_LED_GEN_CFG register to enable
force-mode and forcing the LED either on or off.
When calling the led_hw_control_set() force-mode is again disabled for
that LED.
Implement mxl86110_modify_extended_reg() locked helper instead of
manually acquiring and releasing the MDIO bus lock for single
__mxl86110_modify_extended_reg() calls.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/58eeefc8c24e06cd2110d3cefbd4236b1a4f44a2.1755884175.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/mxl-86110.c