From 11a75d9e26cf9ea2840946ddcfbcf4170bbd190a Mon Sep 17 00:00:00 2001 From: Suraj Jaiswal Date: Fri, 5 Feb 2021 14:37:30 +0530 Subject: [PATCH] net: stmmac: marker for suspend/resume Enable support for Ethernet Link UP KPI marker for as part of system resume. Currenlty Ethernet Link up KPI marker is printed once once & print flag is set to true to avoid further Link UP KPI print. This flag need to reset as part of suspend to print the Ethernet Link UP KPI marker at resume. Change-Id: I849a76520c4c619255ba650fff546a32a05adc2e Signed-off-by: Suraj Jaiswal --- drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 3 +++ 1 file changed, 3 insertions(+) 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; }