From 5b22bf499b81f0ffcf76647ce0ee58743f98ca4f Mon Sep 17 00:00:00 2001 From: Meghana Ashok Date: Thu, 13 Apr 2017 16:00:16 +0530 Subject: 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 --- include/soc/qcom/subsystem_restart.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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); -- cgit v1.2.3