From e4c1aab91d7617b0344c10aa6df264b638f1bfdc 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: Ibc5080ac52646f78cae1eafde91bf6fd582747a5 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 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), -- 2.34.1