Merge branch 'bugfix/ethernet_enable_second_failure_v3.2' into 'release/v3.2'
fix phy init timeout(backport v3.2) See merge request idf/esp-idf!3896
This commit is contained in:
commit
3aafb2cfcf
|
@ -809,7 +809,6 @@ static void emac_start(void *param)
|
||||||
|
|
||||||
ESP_LOGD(TAG, "emac start");
|
ESP_LOGD(TAG, "emac start");
|
||||||
cmd->err = EMAC_CMD_OK;
|
cmd->err = EMAC_CMD_OK;
|
||||||
emac_enable_clk(true);
|
|
||||||
|
|
||||||
if (emac_reset() != ESP_OK) {
|
if (emac_reset() != ESP_OK) {
|
||||||
return;
|
return;
|
||||||
|
@ -870,6 +869,7 @@ esp_err_t esp_eth_enable(void)
|
||||||
esp_pm_lock_acquire(s_pm_lock);
|
esp_pm_lock_acquire(s_pm_lock);
|
||||||
#endif //CONFIG_PM_ENABLE
|
#endif //CONFIG_PM_ENABLE
|
||||||
|
|
||||||
|
emac_enable_clk(true);
|
||||||
/* init phy device */
|
/* init phy device */
|
||||||
if (emac_config.phy_init() != ESP_OK) {
|
if (emac_config.phy_init() != ESP_OK) {
|
||||||
ESP_LOGE(TAG, "Initialise PHY device Timeout");
|
ESP_LOGE(TAG, "Initialise PHY device Timeout");
|
||||||
|
|
Loading…
Reference in a new issue