]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: phy: mscc: Simplify LED mode update using phy_modify()
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Wed, 12 Nov 2025 13:57:12 +0000 (13:57 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 14 Nov 2025 01:48:43 +0000 (17:48 -0800)
commitc31783c2b5ae2399388b349f48fa89818b66f6d8
treeab1bee17fd60d1d636919cbd5ef6233adc6f93dd
parentde9c41624c9cda3a96a9ac6cd9b048d9a25d787d
net: phy: mscc: Simplify LED mode update using phy_modify()

The vsc85xx_led_cntl_set() function currently performs a manual
read-modify-write sequence protected by the PHY lock to update the
LED mode register (MSCC_PHY_LED_MODE_SEL).

Replace this sequence with a call to phy_modify(), which already
handles read-modify-write operations with proper locking inside
the PHY core.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/20251112135715.1017117-2-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/mscc/mscc_main.c