From a45f27a0089f4d6b4936f87a6f5f14649c2c46fe Mon Sep 17 00:00:00 2001 From: Benoit Goby Date: Tue, 28 Dec 2010 15:32:45 -0800 Subject: [PATCH] usb: otg: cpcap: Allow suspend in host mode Change-Id: I6e96aef913e8b1da4f84c594d426cb05d7e940d7 Signed-off-by: Benoit Goby --- drivers/usb/otg/cpcap-otg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- 2.34.1