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

Commit afa041d9 authored by Mohammed Siddiq's avatar Mohammed Siddiq
Browse files

cnss2: Dump mhi debug registers on receiving mhi WAKE event cb



Dump mhi debug registers on receiving mhi WAKE event callback.

Change-Id: I03f8c85d8ca4f9bd1d438c1aa5bb149e86839b29
Signed-off-by: default avatarMohammed Siddiq <msiddiq@codeaurora.org>
parent 6cb02c40
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved. */
/* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved. */

#include <linux/cma.h>
#include <linux/firmware.h>
@@ -2462,12 +2462,18 @@ static void cnss_pci_event_cb(struct msm_pcie_notify *notify)
		cnss_pci_handle_linkdown(pci_priv);
		break;
	case MSM_PCIE_EVENT_WAKEUP:
		cnss_pr_dbg("PCI WAKE event callback\n");
		complete(&pci_priv->wake_event);
		if (cnss_pci_get_monitor_wake_intr(pci_priv) &&
		    cnss_pci_get_auto_suspended(pci_priv)) {
			cnss_pci_set_monitor_wake_intr(pci_priv, false);
			cnss_pci_pm_request_resume(pci_priv);
		}

		if (cnss_pci_check_link_status(pci_priv))
			return;

		mhi_debug_reg_dump(pci_priv->mhi_ctrl);
		break;
	case MSM_PCIE_EVENT_DRV_CONNECT:
		cnss_pr_dbg("DRV subsystem is connected\n");