summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMeghana Ashok <meghanaa@codeaurora.org>2017-04-13 16:00:16 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-05-23 00:19:49 -0700
commit5b22bf499b81f0ffcf76647ce0ee58743f98ca4f (patch)
tree82ece25356c01f2dae7c4568f4401f2214496c12 /include
parent60be71604a84d2e047215cb702d6324379a353bb (diff)
soc: qcom: ssr: Add subsys_set_error API
Adding a new API subsys_set_error() which can indicate reason why a subsystem failed to come up. This error reason can be useful for some userspace helper application to take appropriate action. Change-Id: I6df3580befd48a6b83bb8fd1099475da42fc9cf2 Signed-off-by: Meghana Ashok <meghanaa@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/soc/qcom/subsystem_restart.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/soc/qcom/subsystem_restart.h b/include/soc/qcom/subsystem_restart.h
index b08cc7ded26e..9a4d013b363c 100644
--- a/include/soc/qcom/subsystem_restart.h
+++ b/include/soc/qcom/subsystem_restart.h
@@ -133,6 +133,7 @@ extern void subsys_default_online(struct subsys_device *dev);
extern void subsys_set_crash_status(struct subsys_device *dev,
enum crash_status crashed);
extern enum crash_status subsys_get_crash_status(struct subsys_device *dev);
+extern void subsys_set_error(struct subsys_device *dev, const char *error_msg);
void notify_proxy_vote(struct device *device);
void notify_proxy_unvote(struct device *device);
void complete_err_ready(struct subsys_device *subsys);