Эх сурвалжийг харах

net: ethernet: ti: am65-cpsw-nuss: fix ale port state on netif open

The CPSW port state has not to be set to ALE_PORT_STATE_FORWARD in
.ndo_open() and it has to be properly configured in PHY .adjust_link()
callback only, when link is ready.

Hence, drop setting CPSW port state to ALE_PORT_STATE_FORWARD from
am65_cpsw_nuss_ndo_slave_open().

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Grygorii Strashko 6 жил өмнө
parent
commit
7c1e7d6068

+ 0 - 3
drivers/net/ethernet/ti/am65-cpsw-nuss.c

@@ -636,9 +636,6 @@ static int am65_cpsw_nuss_ndo_slave_open(struct net_device *ndev)
 	cpsw_sl_reset(port->slave.mac_sl, 100);
 	cpsw_sl_ctl_reset(port->slave.mac_sl);
 
-	cpsw_ale_control_set(common->ale, port->port_id,
-			     ALE_PORT_STATE, ALE_PORT_STATE_FORWARD);
-
 	cpsw_phy_sel(common->dev, port->slave.phy_if, port->port_id);
 
 	if (port->slave.phy_node) {