From c5af65b9620d3c6330fe90953bca0e460c87a79f Mon Sep 17 00:00:00 2001 From: Andrei Danaila Date: Thu, 18 Dec 2014 12:45:02 -0800 Subject: mhi: core: Enable additional MHI logging Enable additional MHI logs for monitoring SSR flow. CRs-Fixed: 773805 Change-Id: I579c083ad9ec0238ab3a6d51fec25b4ce5ccf62a Signed-off-by: Andrei Danaila --- drivers/platform/msm/mhi/mhi_macros.h | 4 ++-- drivers/platform/msm/mhi/mhi_ssr.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/platform/msm/mhi/mhi_macros.h b/drivers/platform/msm/mhi/mhi_macros.h index 6151c2b033f4..791f8a484464 100644 --- a/drivers/platform/msm/mhi/mhi_macros.h +++ b/drivers/platform/msm/mhi/mhi_macros.h @@ -1,4 +1,4 @@ -/* 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 diff --git a/drivers/platform/msm/mhi/mhi_ssr.c b/drivers/platform/msm/mhi/mhi_ssr.c index b72500899558..45b27ccb65ad 100644 --- a/drivers/platform/msm/mhi/mhi_ssr.c +++ b/drivers/platform/msm/mhi/mhi_ssr.c @@ -1,4 +1,4 @@ -/* 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, -- cgit v1.2.3