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~28 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e4c1aab91d7617b0344c10aa6df264b638f1bfdc;p=firefly-linux-kernel-4.4.55.git usb: otg: cpcap: Allow suspend in host mode Change-Id: Ibc5080ac52646f78cae1eafde91bf6fd582747a5 Signed-off-by: Benoit Goby --- diff --git a/drivers/usb/otg/cpcap-otg.c b/drivers/usb/otg/cpcap-otg.c index 50e96f8bb354..e1f8b196f360 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),