Hi Abraham,
Do you want to debug suspend/resume stability in your device? Or any others?
The UART will not workable when device into suspend mode, its because the CPU enter suspend mode too.
If you want to suspend Android system only and keep kernel still alive, you can modify /kernel/kernel/power/main.c to block kernel enter suspend.
After above changed, the Android system will suspend (LCD, Touch and Audio also stop working) but kernel still on work, so you can using debug UART on this status.
static ssize_t state_store(struct kobject *kobj, struct kobj_attribute *attr,
const char *buf, size_t n)
{
#if 0
/*
* Not enter suspend mode
*/
do {} while (0);
return 0;
#else
#ifdef CONFIG_SUSPEND
....
Exit:
return error ? error : n;
#endif
}
Rick