Revert "usb: otg: cpcap: Allow suspend in host mode"
authorColin Cross <ccross@android.com>
Thu, 24 Mar 2011 21:26:33 +0000 (14:26 -0700)
committerColin Cross <ccross@android.com>
Thu, 24 Mar 2011 21:26:33 +0000 (14:26 -0700)
This reverts commit a45f27a0089f4d6b4936f87a6f5f14649c2c46fe.

drivers/usb/otg/cpcap-otg.c

index e1f8b196f3608426bd8f8cf2b546857bb4b585af..50e96f8bb354c28e49f07b8d8921818c562ff651 100644 (file)
@@ -131,7 +131,7 @@ static int cpcap_otg_notify(struct notifier_block *nb, unsigned long event,
                return 0;
        otg->state = to;
 
-       if (to == OTG_STATE_B_PERIPHERAL)
+       if (to != OTG_STATE_A_SUSPEND)
                wake_lock(&cpcap->wake_lock);
 
        dev_info(cpcap->otg.dev, "%s --> %s", cpcap_state_name(from),