From: Benoit Goby Date: Tue, 28 Dec 2010 23:32:45 +0000 (-0800) Subject: usb: otg: cpcap: Allow suspend in host mode X-Git-Tag: firefly_0821_release~9834^2~202 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a45f27a0089f4d6b4936f87a6f5f14649c2c46fe;p=firefly-linux-kernel-4.4.55.git usb: otg: cpcap: Allow suspend in host mode Change-Id: I6e96aef913e8b1da4f84c594d426cb05d7e940d7 Signed-off-by: Benoit Goby --- diff --git a/drivers/usb/otg/cpcap-otg.c b/drivers/usb/otg/cpcap-otg.c index 28e83dfda035..108705f437c0 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_A_SUSPEND) + if (to == OTG_STATE_B_PERIPHERAL) wake_lock(&cpcap->wake_lock); dev_info(cpcap->otg.dev, "%s --> %s", cpcap_state_name(from),