usb: chipidea: support runtime power management for otg fsm mode
authorLi Jun <b47624@freescale.com>
Wed, 11 Feb 2015 04:45:03 +0000 (12:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 15:19:12 +0000 (16:19 +0100)
commit961ea496facda611eeb153d8133a4d40055e56ca
treeda1267b53586d89f2510dcdd27b636315ac7eb6e
parent6594591741883e004aaba105951337878698b054
usb: chipidea: support runtime power management for otg fsm mode

This patch adds runtime power management support for otg fsm mode, since
A-device in a_idle state cannot detect data pulse irq after suspended, here
enable wakeup by connection before suspend to make it can be resumed by DP;
and handle wakeup from that state like SRP.

Signed-off-by: Li Jun <jun.li@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/bits.h
drivers/usb/chipidea/core.c
drivers/usb/chipidea/otg_fsm.c