mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
soc: qcom: ssr: Prevent kernel panic caused by adsp crash
Let's just catch this and attempt to restart adsp. Because users do weird things. Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
parent
3c4614528e
commit
e6b49250f8
@ -1285,7 +1285,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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user