[android-kernel] Re: Problem in suspending Wifi driver due to userspace process freeze during suspend sequence

2011-09-19 Thread Sunil Pillai
> 1) Freezing Tasks [enter_state() calls suspend_prepare() which calls > suspend_freeze_processes()] I guess you have miss read my statement above. The text in the square brackets says the same, suspend prepare in fact triggers the freezing of processes. I've just put the flow in the brackets in

Re: [android-kernel] Regarding BT UART

2011-09-19 Thread Pavan Savoy
On Mon, Sep 19, 2011 at 7:50 PM, parth shah wrote: > Hello Friends, > > I have 3 UART on my board. i'm usinf UART2 for Bluetooth. > > How can i mapped that UART to Bluez stack so that i can run hciattach > commad? hciattach takes command line arguments for the UART in use, like hciattach /dev/tty

[android-kernel] Regarding BT UART

2011-09-19 Thread parth shah
Hello Friends, I have 3 UART on my board. i'm usinf UART2 for Bluetooth. How can i mapped that UART to Bluez stack so that i can run hciattach commad? Also which driver does BT UART use in general? Regards, Parth -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://grou

Re: [android-kernel] Re: Problem in suspending Wifi driver due to userspace process freeze during suspend sequence

2011-09-19 Thread Pavan Savoy
On Mon, Sep 19, 2011 at 10:14 AM, Sunil Pillai wrote: > > Hi Pavan, > > Usual Linux PM would follow the below steps: > 1) Freezing Tasks [enter_state() calls suspend_prepare() which calls > suspend_freeze_processes()] Stopping you right here, Because of the answer, PM_SUSPEND_PREPARE is before th

[android-kernel] Re: Problem in suspending Wifi driver due to userspace process freeze during suspend sequence

2011-09-19 Thread Sunil Pillai
Hi Pavan, Usual Linux PM would follow the below steps: 1) Freezing Tasks [enter_state() calls suspend_prepare() which calls suspend_freeze_processes()] 2) each driver's suspend routine is then invoked (In this case wifi driver's suspend gets called here) 3) This is followed by calling device susp

Re: [android-kernel] Problem in suspending Wifi driver due to userspace process freeze during suspend sequence

2011-09-19 Thread Pavan Savoy
On Mon, Sep 19, 2011 at 6:42 AM, Sunil Pillai wrote: > > Hello All, > > I have this situation in my system where the android kernel suspend > procedure fails due to below sequence: > > 1. suspend invoked by the android > 2. All user space processses get freezed including my android > userspace dea

[android-kernel] Problem in suspending Wifi driver due to userspace process freeze during suspend sequence

2011-09-19 Thread Sunil Pillai
Hello All, I have this situation in my system where the android kernel suspend procedure fails due to below sequence: 1. suspend invoked by the android 2. All user space processses get freezed including my android userspace deamon process-X which has wifi userspace component 3. Wifi suspend driv

[android-kernel] Re: Android LCD Backlight doesn't turn off & it doesn't enter suspend

2011-09-19 Thread Sunil Pillai
I have compiled the kernel using all the required configuration for PM. CONFIG_PM, CONFIG_SUSPEND, CONFIG_WAKELOCK, CONFIG_FB_EARLYSUSPEND, CPU_IDLE etc are set. After bootup I also see the logs for request_suspend_state() being called. Log : <6>request_suspend_state: wakeup (3->0) at 9253398900

Re: [android-kernel] Re: Android LCD Backlight doesn't turn off & it doesn't enter suspend

2011-09-19 Thread 叶祥振
if cat /sys/power/state returns a blank means your kernel do not support suspend/on state. I wonder do you have the kernel source, and enable the power managerment switches in kernel config. 2011/9/17 Sunil Pillai > cat /sys/power/wake_lock just prints a blank line. > Also, cat /sys/power/state