We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc086bd commit 2929cb8Copy full SHA for 2929cb8
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -3576,7 +3576,9 @@ int stmmac_resume(struct device *dev)
3576
stmmac_mdio_reset(priv->mii);
3577
}
3578
3579
+#ifndef CONFIG_AMLOGIC_ETH_PRIVE
3580
netif_device_attach(ndev);
3581
+#endif
3582
3583
spin_lock_irqsave(&priv->lock, flags);
3584
@@ -3598,6 +3600,9 @@ int stmmac_resume(struct device *dev)
3598
3600
stmmac_init_tx_coalesce(priv);
3599
3601
stmmac_set_rx_mode(ndev);
3602
3603
+#ifdef CONFIG_AMLOGIC_ETH_PRIVE
3604
+ netif_device_attach(ndev);
3605
3606
napi_enable(&priv->napi);
3607
3608
netif_start_queue(ndev);
0 commit comments