net: lan743x: Fix PHY reset handling during initialization and WOL
authorThangaraj Samynathan <thangaraj.s@microchip.com>
Mon, 26 May 2025 05:30:48 +0000 (11:00 +0530)
committerJakub Kicinski <kuba@kernel.org>
Wed, 28 May 2025 00:52:01 +0000 (17:52 -0700)
commit82d1096ca8b5dbb3158d707e6fb3ad21c3403a49
treedadc7a4ec66081de6c9db8a4e2c7487c13e77379
parent68927eb52d0af04863584930db06075d2610e194
net: lan743x: Fix PHY reset handling during initialization and WOL

Remove lan743x_phy_init from lan743x_hardware_init as it resets the PHY
registers, causing WOL to fail on subsequent attempts. Add a call to
lan743x_hw_reset_phy in the probe function to ensure the PHY is reset
during device initialization.

Fixes: 23f0703c125be ("lan743x: Add main source files for new lan743x driver")
Signed-off-by: Thangaraj Samynathan <thangaraj.s@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250526053048.287095-3-thangaraj.s@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/lan743x_main.c