Loading drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c +20 −4 Original line number Diff line number Diff line Loading @@ -2878,12 +2878,16 @@ static int qcom_ethqos_suspend(struct device *dev) struct stmmac_priv *priv; struct plat_stmmacenet_data *plat; ETHQOSDBG("Suspend Enter\n"); if (of_device_is_compatible(dev->of_node, "qcom,emac-smmu-embedded")) { ETHQOSDBG("smmu return\n"); return 0; } ETHQOSINFO("Ethernet Suspend Enter\n"); #ifdef CONFIG_MSM_BOOT_TIME_MARKER place_marker("M - Ethernet Suspend start"); #endif ethqos = get_stmmac_bsp_priv(dev); if (!ethqos) return -ENODEV; Loading Loading @@ -2920,7 +2924,11 @@ static int qcom_ethqos_suspend(struct device *dev) ethqos_phy_power_off(ethqos); } ETHQOSDBG(" ret = %d\n", ret); #ifdef CONFIG_MSM_BOOT_TIME_MARKER place_marker("M - Ethernet Suspend End"); #endif ETHQOSINFO("Ethernet Suspend End ret = %d\n", ret); return ret; } Loading @@ -2931,10 +2939,14 @@ static int qcom_ethqos_resume(struct device *dev) int ret; struct stmmac_priv *priv; ETHQOSDBG("Resume Enter\n"); if (of_device_is_compatible(dev->of_node, "qcom,emac-smmu-embedded")) return 0; ETHQOSINFO("Ethernet Resume Enter\n"); #ifdef CONFIG_MSM_BOOT_TIME_MARKER place_marker("M - Ethernet Resume start"); #endif ethqos = get_stmmac_bsp_priv(dev); if (!ethqos) Loading Loading @@ -2990,7 +3002,11 @@ static int qcom_ethqos_resume(struct device *dev) } ethqos_ipa_offload_event_handler(NULL, EV_DPM_RESUME); ETHQOSDBG("<--Resume Exit\n"); #ifdef CONFIG_MSM_BOOT_TIME_MARKER place_marker("M - Ethernet Resume End"); #endif ETHQOSINFO("Ethernet Resume End ret = %d\n", ret); return ret; } Loading Loading
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c +20 −4 Original line number Diff line number Diff line Loading @@ -2878,12 +2878,16 @@ static int qcom_ethqos_suspend(struct device *dev) struct stmmac_priv *priv; struct plat_stmmacenet_data *plat; ETHQOSDBG("Suspend Enter\n"); if (of_device_is_compatible(dev->of_node, "qcom,emac-smmu-embedded")) { ETHQOSDBG("smmu return\n"); return 0; } ETHQOSINFO("Ethernet Suspend Enter\n"); #ifdef CONFIG_MSM_BOOT_TIME_MARKER place_marker("M - Ethernet Suspend start"); #endif ethqos = get_stmmac_bsp_priv(dev); if (!ethqos) return -ENODEV; Loading Loading @@ -2920,7 +2924,11 @@ static int qcom_ethqos_suspend(struct device *dev) ethqos_phy_power_off(ethqos); } ETHQOSDBG(" ret = %d\n", ret); #ifdef CONFIG_MSM_BOOT_TIME_MARKER place_marker("M - Ethernet Suspend End"); #endif ETHQOSINFO("Ethernet Suspend End ret = %d\n", ret); return ret; } Loading @@ -2931,10 +2939,14 @@ static int qcom_ethqos_resume(struct device *dev) int ret; struct stmmac_priv *priv; ETHQOSDBG("Resume Enter\n"); if (of_device_is_compatible(dev->of_node, "qcom,emac-smmu-embedded")) return 0; ETHQOSINFO("Ethernet Resume Enter\n"); #ifdef CONFIG_MSM_BOOT_TIME_MARKER place_marker("M - Ethernet Resume start"); #endif ethqos = get_stmmac_bsp_priv(dev); if (!ethqos) Loading Loading @@ -2990,7 +3002,11 @@ static int qcom_ethqos_resume(struct device *dev) } ethqos_ipa_offload_event_handler(NULL, EV_DPM_RESUME); ETHQOSDBG("<--Resume Exit\n"); #ifdef CONFIG_MSM_BOOT_TIME_MARKER place_marker("M - Ethernet Resume End"); #endif ETHQOSINFO("Ethernet Resume End ret = %d\n", ret); return ret; } Loading