Hi Experts,
I am trying to use ACPI_RESUME functionality of coreboot on Bayley Bay CRB and unable to wakeup board with USB Keyboard. Board resumes with power button only. Below is the detailed description.
1. I am using EHCI instead of XHCI as I need to support boot from USB in grub.
2. Enabled S3 support in coreboot File: src/soc/intel/fsp_baytrail/acpi/usb.asl, Chnage: Name (_PRW, Package(){ 13, 3 })
3. Linux Kernel Version: 3.10
In Linux I see following in /proc/acpi/wakeup
root@localhost:~# cat /proc/acpi/wakeup
Device S-state Status Sysfs node
EHC1 S3 *enabled pci:0000:00:1d.0
XHCI S3 *disabled
When I plugin USB keyboard following are logs
root@localhost:~# usb 1-1.2: new low-speed USB device number 3 using ehci-pci
input: SIGMACHIP USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.2/1-1.2:1.0/input/input3
hid-generic 0003:1C4F:0016.0001: input: USB HID v1.10 Keyboard [SIGMACHIP USB Keyboard] on usb-0000:00:1d.0-1.2/input0
input: SIGMACHIP USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.2/1-1.2:1.1/input/input4
hid-generic 0003:1C4F:0016.0002: input: USB HID v1.10 Device [SIGMACHIP USB Keyboard] on usb-0000:00:1d.0-1.2/input1
Based on above information I tried to enable wakeup from USB keyboard as follows
echo enabled > /sys/devices/pci0000\:00/0000\:00\:1d.0/usb1/power/wakeup
echo enabled > /sys/bus/usb/devices/1-1/power/wakeup
Still see the same entried in /proc/acpi/wakeup
root@localhost:~# cat /proc/acpi/wakeup
Device S-state Status Sysfs node
EHC1 S3 *enabled pci:0000:00:1d.0
XHCI S3 *disabled
Did pm-suspend. Following are the logs
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.01 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.