Skip to content

Commit 44845e1

Browse files
TonyHan11kartben
authored andcommitted
drivers: ethernet: ksz8081: move init_int_gpios() to after reset
Call ksz8081_init_int_gpios() after phy_mc_ksz8081_reset() due to keep the configurations for interrupt. Signed-off-by: Tony Han <[email protected]>
1 parent e2113ce commit 44845e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/ethernet/phy/phy_microchip_ksz8081.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -561,11 +561,6 @@ static int phy_mc_ksz8081_init(const struct device *dev)
561561
mdio_bus_enable(config->mdio_dev);
562562
k_busy_wait(100000);
563563

564-
ret = ksz8081_init_int_gpios(dev);
565-
if (ret) {
566-
return ret;
567-
}
568-
569564
ret = ksz8081_init_reset_gpios(dev);
570565
if (ret) {
571566
return ret;
@@ -578,6 +573,11 @@ static int phy_mc_ksz8081_init(const struct device *dev)
578573
return ret;
579574
}
580575

576+
ret = ksz8081_init_int_gpios(dev);
577+
if (ret) {
578+
return ret;
579+
}
580+
581581
k_busy_wait(100000);
582582
k_work_init_delayable(&data->phy_monitor_work,
583583
phy_mc_ksz8081_monitor_work_handler);

0 commit comments

Comments
 (0)