Skip to content

Commit 51f4570

Browse files
decsnycfriedt
authored andcommitted
drivers: ksz8081: Start monitoring phy after init
For some reason, a regression happened where the phy monitor was never happening. Fix by starting the monitor at the end of init function. The monitor will then reschedule itself from then on. Signed-off-by: Declan Snyder <[email protected]>
1 parent 497209c commit 51f4570

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/ethernet/phy/phy_microchip_ksz8081.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,8 @@ static int phy_mc_ksz8081_init(const struct device *dev)
707707

708708
data->flags |= KSZ8081_INITIALIZED;
709709

710+
k_work_reschedule(&data->phy_monitor_work, K_MSEC(CONFIG_PHY_MONITOR_PERIOD));
711+
710712
return 0;
711713
}
712714

0 commit comments

Comments
 (0)