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

Vitaliy Sochnev <[email protected]>
Newsgroups org.kernel.vger.netdev
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.