11diff --git a/drivers/ethernet/eth_esp32.c b/drivers/ethernet/eth_esp32.c
2- index 1b202e9b9..53d580c7e 100644
2+ index 8a7522822f..6ca79be122 100644
33--- a/drivers/ethernet/eth_esp32.c
44+++ b/drivers/ethernet/eth_esp32.c
5- @@ -711,8 +711,12 @@ int eth_esp32_initialize(const struct device *dev)
6- goto err;
7- }
5+ @@ -707,6 +707,10 @@ int eth_esp32_initialize(const struct device *dev)
86 #if !DT_INST_NODE_HAS_PROP(0, ref_clk_output_gpios)
97 eth_esp32_iomux_rmii_clk_input(rmii_clk_gpio);
108 emac_hal_clock_enable_rmii_input(&dev_data->hal);
@@ -13,9 +11,9 @@ index 1b202e9b9..53d580c7e 100644
1311+ emac_hal_clock_enable_rmii_output(&dev_data->hal);
1412+ (void)emac_hal_ref_clock_div(&dev_data->hal, 0);
1513 #endif
16- } else if (strcmp( phy_connection_type, " mii") == 0) {
14+ } else { /* phy_connection_type: mii */
1715 eth_esp32_iomux_init_mii();
18- @@ -735 ,6 +739 ,12 @@ int eth_esp32_initialize(const struct device *dev)
16+ @@ -731 ,6 +735 ,12 @@ int eth_esp32_initialize(const struct device *dev)
1917 /* Set dma_burst_len as ETH_DMA_BURST_LEN_32 by default */
2018 emac_hal_dma_config_t dma_config = { .dma_burst_len = 0 };
2119
0 commit comments