AnsweredAssumed Answered

i.MX6Q: USB remote wakeup

Question asked by Denis Grigoryev on Sep 14, 2015
Latest reply on Oct 2, 2015 by Denis Grigoryev
Branched to a new discussion

Hello!

 

I trying to get USB remote wakeup working on a custom i.MX6Q-based board. OS is android imx_L5.0.0_1.0.0-ga with linux-3.10.53.

I have high-speed USB device (GSM modem Cinterion PHS8-P) connected through USB Host 1.

 

System doesn't wakes up from memory sleep by remote wakeup signal initiated by the USB device.

That is what I do:

 

echo enabled > /sys/bus/platform/devices/20ca000.usbphy/power/wakeup

echo enabled > /sys/bus/platform/devices/2184200.usb/power/wakeup

echo enabled > /sys/bus/platform/devices/2184200.usb/ci_hdrc.1/power/wakeup

echo enabled > /sys/bus/platform/devices/2184200.usb/ci_hdrc.1/usb2/power/wakeup

echo enabled > /sys/bus/platform/devices/2184200.usb/ci_hdrc.1/usb2/2-1/power/wakeup

echo auto > /sys/bus/platform/devices/2184200.usb/ci_hdrc.1/usb2/2-1/power/control

 

Runtime PM works ok. I see suspend/resume messages in dmesg:

 

mxs_phy 20ca000.usbphy: HS device has suspended

ci_hdrc ci_hdrc.1: Remote wakeup is enabled, and device is on the port

ci_hdrc ci_hdrc.1: at ci_runtime_suspend

imx_usb 2184200.usb: at imx_controller_suspend

imx_usb 2184200.usb: at imx_controller_resume

ci_hdrc ci_hdrc.1: at ci_controller_resume

mxs_phy 20ca000.usbphy: HS device has resumed

mxs_phy 20ca000.usbphy: HS device has suspended

ci_hdrc ci_hdrc.1: Remote wakeup is enabled, and device is on the port

ci_hdrc ci_hdrc.1: at ci_runtime_suspend

imx_usb 2184200.usb: at imx_controller_suspend

 

but once system goes to suspend it have no reaction to resume signal.

 

I have no possibility to connect a different device to USBH1. A full-speed device (e.g. mouse, keyboard) connected to USB_OTG seems to work normally: resume signal causes system wakeup.

Please point me in the right direction.

 

Thank you!

Outcomes