usb:otg: wait for system resume before stopping host
authorjzhuan5 <jin.can.zhuang@intel.com>
Thu, 14 Jun 2012 22:24:49 +0000 (18:24 -0400)
committerbuildbot <buildbot@intel.com>
Tue, 19 Jun 2012 11:49:01 +0000 (04:49 -0700)
commitb07171fff9983caca4dbaceb5e2a3f7dff56d4b1
tree5ea0241ed477d609b86d9455c50ef1a5485c982e
parent35ce2b56b26a6022860d43035169ab05fd932d6c
usb:otg: wait for system resume before stopping host

BZ: 38545

add a PM notifier to know whether system is resumed.
EHCI driver should not be removed until system is resumed.

Change-Id: I012d1130215f08bd4230af8adf4068d8cb588c0b
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/52758
Reviewed-by: Wu, Hao <hao.wu@intel.com>
Reviewed-by: Tang, Jianqiang <jianqiang.tang@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Gao, Yunpeng <yunpeng.gao@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/usb/otg/penwell_otg.c