mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ethernet:disable flow control when select l2_to_l3_copy_mode
This commit is contained in:
parent
b8e2edc99f
commit
627bc23b1c
@ -537,6 +537,10 @@ static void emac_check_phy_init(void)
|
|||||||
} else {
|
} else {
|
||||||
REG_CLR_BIT(EMAC_GMACCONFIG_REG, EMAC_GMACFESPEED);
|
REG_CLR_BIT(EMAC_GMACCONFIG_REG, EMAC_GMACFESPEED);
|
||||||
}
|
}
|
||||||
|
#if CONFIG_EMAC_L2_TO_L3_RX_BUF_MODE
|
||||||
|
emac_disable_flowctrl();
|
||||||
|
emac_config.emac_flow_ctrl_partner_support = false;
|
||||||
|
#else
|
||||||
if (emac_config.emac_flow_ctrl_enable == true) {
|
if (emac_config.emac_flow_ctrl_enable == true) {
|
||||||
if (emac_config.emac_phy_get_partner_pause_enable() == true && emac_config.emac_phy_get_duplex_mode() == ETH_MDOE_FULLDUPLEX) {
|
if (emac_config.emac_phy_get_partner_pause_enable() == true && emac_config.emac_phy_get_duplex_mode() == ETH_MDOE_FULLDUPLEX) {
|
||||||
emac_enable_flowctrl();
|
emac_enable_flowctrl();
|
||||||
@ -549,6 +553,7 @@ static void emac_check_phy_init(void)
|
|||||||
emac_disable_flowctrl();
|
emac_disable_flowctrl();
|
||||||
emac_config.emac_flow_ctrl_partner_support = false;
|
emac_config.emac_flow_ctrl_partner_support = false;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
emac_mac_enable_txrx();
|
emac_mac_enable_txrx();
|
||||||
}
|
}
|
||||||
static void emac_process_link_updown(bool link_status)
|
static void emac_process_link_updown(bool link_status)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user