Skip to content

Commit

Permalink
msm: kpi: update_marker api for pcie, usb and eth suspend resume
Browse files Browse the repository at this point in the history
Replace place_marker with update_marker api to capture
suspend resume kpi of pheripherals like usb, ethernet and
pcie.

Change-Id: Ida46d41273967aa5efccd06f13f6219adfba4a4e
Signed-off-by: Sanjay Dwivedi <[email protected]>
  • Loading branch information
Sanjay Dwivedi authored and Gerrit - the friendly Code Review server committed Sep 4, 2020
1 parent 9684d05 commit b7ea6fa
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
Original file line number Diff line number Diff line change
Expand Up @@ -2885,7 +2885,7 @@ static int qcom_ethqos_suspend(struct device *dev)

ETHQOSINFO("Ethernet Suspend Enter\n");
#ifdef CONFIG_MSM_BOOT_TIME_MARKER
place_marker("M - Ethernet Suspend start");
update_marker("M - Ethernet Suspend start");
#endif

ethqos = get_stmmac_bsp_priv(dev);
Expand Down Expand Up @@ -2925,7 +2925,7 @@ static int qcom_ethqos_suspend(struct device *dev)
}

#ifdef CONFIG_MSM_BOOT_TIME_MARKER
place_marker("M - Ethernet Suspend End");
update_marker("M - Ethernet Suspend End");
#endif
ETHQOSINFO("Ethernet Suspend End ret = %d\n", ret);

Expand All @@ -2944,7 +2944,7 @@ static int qcom_ethqos_resume(struct device *dev)

ETHQOSINFO("Ethernet Resume Enter\n");
#ifdef CONFIG_MSM_BOOT_TIME_MARKER
place_marker("M - Ethernet Resume start");
update_marker("M - Ethernet Resume start");
#endif

ethqos = get_stmmac_bsp_priv(dev);
Expand Down Expand Up @@ -3003,7 +3003,7 @@ static int qcom_ethqos_resume(struct device *dev)
ethqos_ipa_offload_event_handler(NULL, EV_DPM_RESUME);

#ifdef CONFIG_MSM_BOOT_TIME_MARKER
place_marker("M - Ethernet Resume End");
update_marker("M - Ethernet Resume End");
#endif
ETHQOSINFO("Ethernet Resume End ret = %d\n", ret);

Expand Down
2 changes: 1 addition & 1 deletion drivers/platform/msm/ep_pcie/ep_pcie_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1895,7 +1895,7 @@ int ep_pcie_core_enable_endpoint(enum ep_pcie_options opt)
"PCIe V%d: link initialized for LE PCIe endpoint\n",
dev->rev);
pr_crit("PCIe - link initialized for LE PCIe endpoint\n");
place_marker(
update_marker(
"PCIe - link initialized for LE PCIe endpoint\n");
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/platform/msm/mhi_dev/mhi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@ static void mhi_hwc_cb(void *priv, enum ipa_mhi_event_type event,
}

mhi_log(MHI_MSG_CRITICAL, "Device in M0 State\n");
place_marker("MHI - Device in M0 State\n");
update_marker("MHI - Device in M0 State\n");
break;
case IPA_MHI_EVENT_DATA_AVAILABLE:
rc = mhi_dev_notify_sm_event(MHI_DEV_EVENT_HW_ACC_WAKEUP);
Expand Down
4 changes: 2 additions & 2 deletions drivers/usb/dwc3/dwc3-msm.c
Original file line number Diff line number Diff line change
Expand Up @@ -3305,7 +3305,7 @@ static irqreturn_t msm_dwc3_pwr_irq(int irq, void *data)

if (mdwc->drd_state == DRD_STATE_PERIPHERAL_SUSPEND) {
dev_info(mdwc->dev, "USB Resume start\n");
place_marker("M - USB device resume started");
update_marker("M - USB device resume started");
}

/*
Expand Down Expand Up @@ -5178,7 +5178,7 @@ static int dwc3_msm_pm_resume(struct device *dev)
if (atomic_read(&dwc->in_lpm) &&
mdwc->drd_state == DRD_STATE_PERIPHERAL_SUSPEND) {
dev_info(mdwc->dev, "USB Resume start\n");
place_marker("M - USB device resume started");
update_marker("M - USB device resume started");
}

if (!dwc->ignore_wakeup_src_in_hostmode || !mdwc->in_host_mode) {
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/gadget/composite.c
Original file line number Diff line number Diff line change
Expand Up @@ -2439,7 +2439,7 @@ void composite_resume(struct usb_gadget *gadget)
* suspend/resume callbacks?
*/
INFO(cdev, "USB Resume end\n");
place_marker("M - USB device is resumed");
update_marker("M - USB device is resumed");
if (cdev->driver->resume)
cdev->driver->resume(cdev);

Expand Down

0 comments on commit b7ea6fa

Please sign in to comment.