diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c index 02d518ed5b22..94331d380ea2 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c @@ -1709,6 +1709,7 @@ static int qcom_ethqos_suspend(struct device *dev) struct qcom_ethqos *ethqos; struct net_device *ndev = NULL; int ret; + struct stmmac_priv *priv; if (of_device_is_compatible(dev->of_node, "qcom,emac-smmu-embedded")) { ETHQOSDBG("smmu return\n"); @@ -1724,9 +1725,11 @@ static int qcom_ethqos_suspend(struct device *dev) if (!ndev || !netif_running(ndev)) return -EINVAL; + priv = netdev_priv(ndev); ret = stmmac_suspend(dev); qcom_ethqos_phy_suspend_clks(ethqos); + priv->boot_kpi = false; ETHQOSDBG(" ret = %d\n", ret); return ret; }