Netdev List
 help / color / mirror / Atom feed
* [PATCH 0/2] net: phy: air_en8811h: fix LED GPIO not surviving MCU restart
@ 2026-08-23 13:06 Vitaliy Sochnev
  2026-08-23 13:06 ` [PATCH 1/2] net: phy: air_en8811h: move LED GPIO configuration to config_init Vitaliy Sochnev
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Vitaliy Sochnev @ 2026-08-23 13:06 UTC (permalink / raw)
  To: netdev; +Cc: Vitaliy Sochnev

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(-)

-- 
2.55.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-08-27  9:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-23 13:06 [PATCH 0/2] net: phy: air_en8811h: fix LED GPIO not surviving MCU restart Vitaliy Sochnev
2026-08-23 13:06 ` [PATCH 1/2] net: phy: air_en8811h: move LED GPIO configuration to config_init Vitaliy Sochnev
2026-08-23 13:06 ` [PATCH 2/2] net: phy: air_en8811h: simplify en8811h_probe() trailing return Vitaliy Sochnev
2026-08-27  9:45 ` [PATCH 0/2] net: phy: air_en8811h: fix LED GPIO not surviving MCU restart Paolo Abeni
2026-08-27  9:50 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox