When low power mode is configured to wake up on ignition HIGH or LOW, and the router goes to sleep using standby mode of TI AM335x, sometimes(after 2 consecutive sleep-wake ups), the ignition trigger detection does not happen and so the router cannot be woken up.
When this happens, Ethernet interface does not come up. At this point if we reboot, then things are restored properly.
Following logic is used to arm the processor for detecting ignition trigger,before going to standby mode --
wakeonignpval=`rdb_get power.profile.$1.wakeonignpinval`
echo 1 > /debugfs/omap_mux/board/suspend_io_pad_conf/enable_suspend_io_pad_conf
if [ "$wakeonignpval" = "on" ]; then
echo gpio0_7=0x27,falling > /debugfs/omap_mux/board/standby_gpio_pad_conf
else
echo gpio0_7=0x27,rising > /debugfs/omap_mux/board/standby_gpio_pad_conf
fi
# go to sleep
echo -n standby > /sys/power/state
Can you please help me identify the root cause of the above issue and how to fix it?