Skip to content

net: phy: air_en8811h: fix LED GPIO not surviving MCU restart

Vitaliy Sochnev lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review 1 of 2 applied

Patches in v1 1 of 2 applied

#Subject and filesSizeRepliesApplied
1/2net: phy: air_en8811h: move LED GPIO configuration to config_initdrivers/net/phy/air_en8811h.c+11 -70 repliesApplied
2/2net: phy: air_en8811h: simplify en8811h_probe() trailing returndrivers/net/phy/air_en8811h.c+1 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] net: phy: air_en8811h: fix LED GPIO not surviving MCU restart

The EN8811H PHY's LED GPIO pins are only ever configured as outputs once, in .probe(). Every .config_init() call after the first restarts the PHY's MD32 MCU, which resets that GPIO configuration back to inputs, so the LEDs silently stop reflecting link/activity state after the first link renegotiation, ifdown/ifup, or resume. Patch 1 fixes that. Patch 2 is a small follow-on cleanup enabled by patch 1's removal of code from .probe(), kept as a separate patch so patch 1 stays a minimal, clean Fixes: change.

Verified on hardware (Nokia XG-040G-MD, Airoha AN7581) via OpenWrt:
before the fix, the LED stayed dark after the board's first link renegotiation post-boot; after the fix, it lit correctly through repeated link up/down cycles.

Vitaliy Sochnev (2):
net: phy: air_en8811h: move LED GPIO configuration to config_init
net: phy: air_en8811h: simplify en8811h_probe() trailing return

 drivers/net/phy/air_en8811h.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
Signature · 1 line
2.55.0