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

Commit da40a5a2 authored by Andrei Danaila's avatar Andrei Danaila Committed by Matt Wagantall
Browse files

mhi: core: Enable additional MHI logging



Enable additional MHI logs for monitoring SSR flow.

CRs-Fixed: 773805
Change-Id: I579c083ad9ec0238ab3a6d51fec25b4ce5ccf62a
Signed-off-by: default avatarAndrei Danaila <adanaila@codeaurora.org>
parent 528b7beb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2015, 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
@@ -12,7 +12,7 @@
#ifndef _H_MHI_MACROS
#define _H_MHI_MACROS

#define MHI_IPC_LOG_PAGES (50)
#define MHI_IPC_LOG_PAGES (100)
#define MHI_LOG_SIZE 0x1000
#define MHI_LINK_STABILITY_WAIT_MS 100
#define MHI_MAX_LINK_RETRIES 9
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2015, 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
@@ -50,8 +50,8 @@ static int mhi_ssr_notify_cb(struct notifier_block *nb,
	case SUBSYS_BEFORE_SHUTDOWN:
		mhi_log(MHI_MSG_INFO,
			"Received Subsystem event BEFORE_SHUTDOWN\n");
		atomic_set(&mhi_dev_ctxt->flags.pending_ssr, 1);
		mhi_notify_clients(mhi_dev_ctxt, MHI_CB_MHI_DISABLED);
		atomic_set(&mhi_dev_ctxt->flags.pending_ssr, 1);
		break;
	case SUBSYS_AFTER_SHUTDOWN:
		mhi_log(MHI_MSG_INFO,