mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
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 <jsuraj@codeaurora.org>
This commit is contained in:
parent
63c2f5b3fa
commit
11a75d9e26
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue