mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
Merge branch 'bugfix/eth_lan8720_ci_v4.4' into 'release/v4.4'
esp_eth: start/stop and L2 test stability improvements (v4.4) See merge request espressif/esp-idf!22322
This commit is contained in:
@@ -213,6 +213,9 @@ esp_err_t enc28j60_set_phy_duplex(esp_eth_phy_t *phy, eth_duplex_t duplex)
|
||||
esp_eth_mediator_t *eth = enc28j60->eth;
|
||||
phcon1_reg_t phcon1;
|
||||
|
||||
/* Since the link is going to be reconfigured, consider it down to be status updated once the driver re-started */
|
||||
enc28j60->link_status = ETH_LINK_DOWN;
|
||||
|
||||
PHY_CHECK(eth->phy_reg_read(eth, enc28j60->addr, 0, &phcon1.val) == ESP_OK,
|
||||
"read PHCON1 failed", err);
|
||||
switch (duplex) {
|
||||
|
||||
Reference in New Issue
Block a user