From ee7cab6a4cfdc5b15aea43161357017cb5ba6361 Mon Sep 17 00:00:00 2001 From: Benoit Goby Date: Wed, 2 Nov 2011 17:42:07 -0700 Subject: tuna: set root hubs autosuspend delay to 0 The musb driver now holds a wakelock when the root hub is resumed. Suspend root hubs immediatly if no device is attached or immaediatly after attached devices are suspended by setting their autosuspend delay to 0. Change-Id: If573b76065f2cc1b0b1bf4b56cfcda18d682851f --- init.tuna.rc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'init.tuna.rc') diff --git a/init.tuna.rc b/init.tuna.rc index 980e964..bb8e254 100755 --- a/init.tuna.rc +++ b/init.tuna.rc @@ -45,6 +45,10 @@ on boot write /sys/devices/system/cpu/cpufreq/interactive/timer_rate 100000 write /sys/devices/system/cpu/cpufreq/interactive/min_sample_time 10000 +# autosuspend root hubs immediatly after attached devices + write /sys/bus/usb/devices/usb1/power/autosuspend_delay_ms 0 + write /sys/bus/usb/devices/usb2/power/autosuspend_delay_ms 0 + on fs mkdir /factory 0775 radio radio mount ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/system /system wait ro -- cgit v1.1