soc/qcom: ssr: Do not panic kernel in any case

* recent fw updates are causing adsp to crash randomly,
   such as during calls with live caption enabled

 * in this specific case per my testing, instead of panicking
   kernel and rebooting device, subsystem restart works just
   fine with only a temporary loss of call audio for 1-2s

 * __subsystem_restart_dev() panics the kernel anyway if ssr
   fails so it would never enter an infinite loop

[ghostrider-reborn: picked from surya, applies to ginkgo as well]
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pri0818 <priyanshusinghal0818@gmail.com>
Signed-off-by: GenZSouL <priyanshusinghal0818x@gmail.com>
This commit is contained in:
Adithya R
2021-10-29 21:10:01 +05:30
committed by theshaenix
parent ddabf13430
commit 45032d2633

View File

@@ -1307,6 +1307,8 @@ int subsystem_restart_dev(struct subsys_device *dev)
return 0;
}
dev->restart_level = RESET_SUBSYS_COUPLED;
switch (dev->restart_level) {
case RESET_SUBSYS_COUPLED: