USB: OTG: msm: Clear in_lpm flag before enabling the IRQ in resume
commit2ce2c3ac8852cfc8f74f4b7b9a2c4cdff007f96a
authorPavankumar Kondeti <pkondeti@codeaurora.org>
Mon, 2 May 2011 06:26:33 +0000 (2 11:56 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 3 May 2011 17:25:26 +0000 (3 10:25 -0700)
treec86963aeee28990c155c76e8e399787aae0bbcb7
parentac1aa6a21747d02a93b1becb4ab19f1fc9de2beb
USB: OTG: msm: Clear in_lpm flag before enabling the IRQ in resume

The current code is clearing in_lpm flag after enabling the IRQ.
If IRQ comes immediately before in_lpm flag is set, it thinks that
hardware is in low power mode and disables the IRQ.  Fix this by
clearing in_lpm flag before enabling the IRQ.

Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/otg/msm_otg.c