summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhanim Fodi <gfodi@codeaurora.org>2017-06-11 12:35:41 +0300
committerGerrit - the friendly Code Review server <code-review@localhost>2017-06-25 23:52:59 -0700
commitb6d325b8f74a5e67472e0e2f84a7a940d06d9e5c (patch)
tree0805c622015110db868e8619296c379bc3974770
parent6f56b2a9c8e2ce69e2a98e52d5f1342b25cae44e (diff)
msm: ipa3: Assert on GSI MHI event ring fatal error
GSI MHI event ring error is a fatal error where there is no recovery possible. Data path will be stalled. This change will assert on this case. Change-Id: I9c94e44b2f2d5e1b0b8d059b871d1bd9ad2d3fcf Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
-rw-r--r--drivers/platform/msm/ipa/ipa_clients/ipa_mhi_client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/platform/msm/ipa/ipa_clients/ipa_mhi_client.c b/drivers/platform/msm/ipa/ipa_clients/ipa_mhi_client.c
index a02247d3e938..5aa39b699bd6 100644
--- a/drivers/platform/msm/ipa/ipa_clients/ipa_mhi_client.c
+++ b/drivers/platform/msm/ipa/ipa_clients/ipa_mhi_client.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015, 2016 The Linux Foundation. All rights reserved.
+/* Copyright (c) 2015, 2017 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
@@ -1059,6 +1059,7 @@ static void ipa_mhi_gsi_ev_err_cb(struct gsi_evt_err_notify *notify)
IPA_MHI_ERR("Unexpected err evt: %d\n", notify->evt_id);
}
IPA_MHI_ERR("err_desc=0x%x\n", notify->err_desc);
+ ipa_assert();
}
static void ipa_mhi_gsi_ch_err_cb(struct gsi_chan_err_notify *notify)
@@ -1090,6 +1091,7 @@ static void ipa_mhi_gsi_ch_err_cb(struct gsi_chan_err_notify *notify)
IPA_MHI_ERR("Unexpected err evt: %d\n", notify->evt_id);
}
IPA_MHI_ERR("err_desc=0x%x\n", notify->err_desc);
+ ipa_assert();
}