From: Colin Cross Date: Thu, 24 Mar 2011 21:26:33 +0000 (-0700) Subject: Revert "usb: otg: cpcap: Allow suspend in host mode" X-Git-Tag: firefly_0821_release~9834^2~33 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0bf1d3e5adfcbb4c2a69c3d2fad16502c267df9f;p=firefly-linux-kernel-4.4.55.git Revert "usb: otg: cpcap: Allow suspend in host mode" This reverts commit a45f27a0089f4d6b4936f87a6f5f14649c2c46fe. --- diff --git a/drivers/usb/otg/cpcap-otg.c b/drivers/usb/otg/cpcap-otg.c index e1f8b196f360..50e96f8bb354 100644 --- a/drivers/usb/otg/cpcap-otg.c +++ b/drivers/usb/otg/cpcap-otg.c @@ -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),