usb:penwell_otg: disable otg interrupt in penwell_otg_resume_noirq
authorjzhuan5 <jin.can.zhuang@intel.com>
Tue, 8 May 2012 09:13:00 +0000 (17:13 +0800)
committerbuildbot <buildbot@intel.com>
Fri, 11 May 2012 10:37:47 +0000 (03:37 -0700)
commit75c5ece6f57cee81b11b90f2b7c9b576737b839c
tree2d943dcc36b7e0694a3110c3d180d51d259cbbaf
parenta7c434c16f2dbacb0de95dbf494a8ac5d6b4bafb
usb:penwell_otg: disable otg interrupt in penwell_otg_resume_noirq

BZ: 35035

1. As irq isn't disabled when suspended (if does so, wakeup interrupt maybe
missed), irq should be disabled in penwell_otg_resume_noirq. Otherwise,
irq may happen before penwell_otg_resume is called, this causes
unconsistent state regarding to that before suspending.

2. move the hsm update from penwell_otg_resume_noirq to
penwell_otg_resume

Change-Id: I38c510b77b4cdd9f29fdbd52d71057b4a8ef0187
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/47818
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/usb/otg/penwell_otg.c