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

Commit 03ba9a99 authored by Rama Krishna Phani A's avatar Rama Krishna Phani A
Browse files

msm: mhi_dev: Log BHI_IMGTXDB register



Log BHI_IMGTXDB register upon receiving M0/M3 from Host.

Change-Id: I53943fae1f27fa61c56a688156a734d8bc308248
Signed-off-by: default avatarRama Krishna Phani A <rphani@codeaurora.org>
parent ea7861da
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1483,6 +1483,7 @@ static void mhi_dev_scheduler(struct work_struct *work)
	enum mhi_dev_state state;
	enum mhi_dev_event event = 0;
	bool mhi_reset = false;
	uint32_t bhi_imgtxdb = 0;

	mutex_lock(&mhi_ctx->mhi_lock);
	/* Check for interrupts */
@@ -1520,6 +1521,10 @@ static void mhi_dev_scheduler(struct work_struct *work)
			pr_err("error sending SM event\n");
			goto fail;
		}

		rc = mhi_dev_mmio_read(mhi, BHI_IMGTXDB, &bhi_imgtxdb);
		mhi_log(MHI_MSG_VERBOSE,
			"BHI_IMGTXDB = 0x%x\n", bhi_imgtxdb);
	}

	if (int_value & MHI_MMIO_CTRL_CRDB_STATUS_MSK) {
+3 −1
Original line number Diff line number Diff line
/* Copyright (c) 2015, 2017 The Linux Foundation. All rights reserved.
/* Copyright (c) 2015, 2017-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -192,4 +192,6 @@
#define BHI_EXECENV_MASK				0xFFFFFFFF
#define BHI_EXECENV_SHIFT				0

#define BHI_IMGTXDB					(0x218)

#endif