Re: [PATCH net v2] net: phy: dp83867: restore LED configuration after a soft reset

From: patchwork-bot+netdevbpf

Date: Mon Sep 14 2026 - 20:44:14 EST


Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Wed, 9 Sep 2026 08:57:40 +0900 you wrote:
> The LED configuration lives in LEDCR1 (the per-LED function nibble) and
> LEDCR2 (per-LED driver enable/value and polarity). The driver programs it
> through the LED class callbacks -- dp83867_led_brightness_set(),
> dp83867_led_hw_control_set() and dp83867_led_polarity_set() -- either once
> from device tree at probe, or at runtime from sysfs and the netdev trigger.
>
> dp83867_phy_reset(), the .soft_reset callback, issues a global software
> reset (CTRL SW_RESET), which the datasheet defines as resetting all
> registers, including the extended registers, to their defaults.
> phy_init_hw() runs .soft_reset before .config_init on every attach and
> resume -- phy_attach_direct(), mdio_bus_phy_resume() and MAC drivers -- so
> the LED configuration is wiped from the first attach onward and never
> restored. A device-tree polarity is lost, a manually driven LED goes dark,
> and an LED offloaded to the netdev trigger whose link stays down after a
> resume keeps the reset-default function until the next link event.
>
> [...]

Here is the summary with links:
- [net,v2] net: phy: dp83867: restore LED configuration after a soft reset
https://git.kernel.org/netdev/net-next/c/043777e94880

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html