aboutsummaryrefslogtreecommitdiff
path: root/drivers/soc/qcom/subsystem_restart.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/soc/qcom/subsystem_restart.c')
-rw-r--r--drivers/soc/qcom/subsystem_restart.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/soc/qcom/subsystem_restart.c b/drivers/soc/qcom/subsystem_restart.c
index 5fc22ce2..e0d566cb 100644
--- a/drivers/soc/qcom/subsystem_restart.c
+++ b/drivers/soc/qcom/subsystem_restart.c
@@ -1640,6 +1640,13 @@ struct subsys_device *subsys_register(struct subsys_desc *desc)
strlcpy(subsys->desc->fw_name, desc->name,
sizeof(subsys->desc->fw_name));
+//lenovo sw, yexh1 add for set the modem resart level to RELATED at init
+ if (!strcmp(desc->name, "modem")){
+ subsys->restart_level = RESET_SUBSYS_COUPLED;
+ pr_info("set the %s restart level to RELATED'\n", desc->name);
+ }
+//lenovo sw, yexh1 end
+
subsys->notify = subsys_notif_add_subsys(desc->name);
snprintf(subsys->wlname, sizeof(subsys->wlname), "ssr(%s)", desc->name);