This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Am335x: Disable Wake on UART

Hello,

i have customized board based on BealeBone Balck. 

Following this link: http://processors.wiki.ti.com/index.php/AM335x_Linux_Power_Management_User_Guide

i am trying to disable waking up the System from UART0.

    echo disabled > /sys/devices/ocp.2/44e09000.serial/tty/ttyO0/power/wakeup                      

    echo disabled > /sys/devices/ocp.2/44e09000.serial/power/wakeup     


this is the setting of the currnt wakeup sources:

cat /sys/kernel/debug/wakeup_sources

name             ................
wakeup.gpiokey   ................
44e3e00.rtc      ................
alarmtimer       ................

as you see there is no UART to see!! but i am still able to wake the system up from UART ??

root@milo:~# echo mem > /sys/power/state
[ 5309.439410] PM: Syncing filesystems ... done.
[ 5309.448122] Freezing user space processes ... (elapsed 0.004 seconds) done.
[ 5309.460957] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 5309.470180] Suspending console(s) (use no_console_suspend to debug)
[ 5309.531079] PM: suspend of devices complete after 53.350 msecs
[ 5309.532112] PM: late suspend of devices complete after 1.017 msecs
[ 5309.533249] PM: noirq suspend of devices complete after 1.119 msecs
[ 5309.533326] PM: Successfully put all powerdomains to target state
[ 5309.533326] PM: Wakeup source UART
[ 5309.547912] PM: noirq resume of devices complete after 14.450 msecs
[ 5309.548769] PM: early resume of devices complete after 0.708 msecs
[ 5309.549692] c_can_platform 481d0000.d_can can0: setting BTR=2a01 BRPE=0000
[ 5309.549843] net eth0: initializing cpsw version 1.12 (0)
[ 5309.552140] net eth0: phy found : id is : 0x7c0f1
[ 5309.552202] libphy: PHY 4a101000.mdio:01 not found
[ 5309.552209] net eth0: phy 4a101000.mdio:01 not found on slave 1
[ 5309.774800] PM: resume of devices complete after 226.004 msecs
[ 5309.853396] Restarting tasks ... [ 5309.857207] usb 2-1: USB disconnect, device number 9

as you see in line 10, the system is still waking up from UART0 !!!

any idea waht is going wrong???

Thanks