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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user