fix: ethernet: dwmac-light: resovled hibernate

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
This commit is contained in:
Han Gao
2024-03-15 00:47:16 +08:00
committed by Han Gao/Revy/Rabenda
parent 931828f822
commit c6d4e5df18

View File

@@ -868,6 +868,9 @@ static int __maybe_unused thead_dwmac_resume(struct device *dev)
struct platform_device *pdev = to_platform_device(dev);
pm_debug(dev,"enter %s()\n",__func__);
if (!netif_running(ndev))
return 0;
if (priv->plat->init)
priv->plat->init(pdev, priv->plat->bsp_priv);