Skip to content

Commit 2929cb8

Browse files
Yixun Lanakiernan
Yixun Lan
authored andcommitted
eth: stmmac: fix timer expire issue in resume stage
PD#150780: eth: stmmac: fix timer expire issue in resume stage Change-Id: I1d154c1eb581972d6131871901ade2272a1192ad Signed-off-by: Yixun Lan <[email protected]>
1 parent fc086bd commit 2929cb8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

+5
Original file line numberDiff line numberDiff line change
@@ -3576,7 +3576,9 @@ int stmmac_resume(struct device *dev)
35763576
stmmac_mdio_reset(priv->mii);
35773577
}
35783578

3579+
#ifndef CONFIG_AMLOGIC_ETH_PRIVE
35793580
netif_device_attach(ndev);
3581+
#endif
35803582

35813583
spin_lock_irqsave(&priv->lock, flags);
35823584

@@ -3598,6 +3600,9 @@ int stmmac_resume(struct device *dev)
35983600
stmmac_init_tx_coalesce(priv);
35993601
stmmac_set_rx_mode(ndev);
36003602

3603+
#ifdef CONFIG_AMLOGIC_ETH_PRIVE
3604+
netif_device_attach(ndev);
3605+
#endif
36013606
napi_enable(&priv->napi);
36023607

36033608
netif_start_queue(ndev);

0 commit comments

Comments
 (0)