Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 743e7dde authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net:stmmac: Added bootKPI markers"

parents f5c96e5b 943e2c87
Loading
Loading
Loading
Loading
+20 −4
Original line number Diff line number Diff line
@@ -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;
@@ -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;
}

@@ -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)
@@ -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;
}