[android-kernel] Where to put ADB wake lock?

2012-03-03 Thread Arun Joseph
Hi All, For Android smart phones, a wakelock is held to prevent sleep when adb is connected. Which is the ideal place to acquire this wake lock. Is it in adb driver ? or in usb gadget driver? or in the userspace adb deamon? Can anyone point to any such example code? -- unsubscribe: android-kern

Re: [android-kernel] Android suspend

2012-02-27 Thread arun joseph
I think, it is like when you suspend, 1)early suspend handlers are invoked 2)checks any active wake lock, if yes exit suspend and wait for wake event 3)if any wakelock is released in this wait, again check for active wake locks 4) if no wakelocks are being held proceed with the kernel suspend func