From 163d1e915d79d63a21f1a3255e6c31707b5e7c2e Mon Sep 17 00:00:00 2001 From: David Ng Date: Wed, 22 Aug 2012 17:58:07 -0700 Subject: [PATCH] init: qcom: Add property trigger for subsystem restart sysfs nodes New property triggers for setting up the proper subsystem restart levels. Change-Id: I519ed48fa1da66f79077bb85bc7adea8a5fbf488 --- rootdir/etc/init.qcom.rc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index f47f465f..3df8c823 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -606,3 +606,8 @@ on property:service.adb.root=1 restart adbd write /sys/class/android_usb/android0/enable 1 +# Limit to SoC reset (1) and independent SSR (3) +on property:persist.sys.ssr.restart_level=1 + write /sys/module/subsystem_restart/parameters/restart_level 1 +on property:persist.sys.ssr.restart_level=3 + write /sys/module/subsystem_restart/parameters/restart_level 3