Skip to content

Commit

Permalink
soc: qcom: ssr: Prevent kernel panic caused by adsp crash
Browse files Browse the repository at this point in the history
Let's just catch this and attempt to restart adsp.
Because users do weird things.
  • Loading branch information
RealJohnGalt authored and Codecity001 committed Jul 16, 2022
1 parent b84681b commit 840b36c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/soc/qcom/subsystem_restart.c
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@ int subsystem_restart_dev(struct subsys_device *dev)
return 0;
}

if (!strcmp(name, "modem"))
if (!strcmp(name, "modem") || !strcmp(name, "adsp"))
dev->restart_level = RESET_SUBSYS_COUPLED;

switch (dev->restart_level) {
Expand Down

0 comments on commit 840b36c

Please sign in to comment.