From 0bf1d3e5adfcbb4c2a69c3d2fad16502c267df9f Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 24 Mar 2011 14:26:33 -0700 Subject: [PATCH] Revert "usb: otg: cpcap: Allow suspend in host mode" This reverts commit a45f27a0089f4d6b4936f87a6f5f14649c2c46fe. --- 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 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), -- 2.34.1