summaryrefslogtreecommitdiff
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorLi Jun <B47624@freescale.com>2014-12-24 18:23:04 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-23 16:56:17 +0300
commitc7bdd6da19c4c43f4449bfeeb43583131cca54d8 (patch)
treecddfdbe092f066ac49173d81e4dc65a754459242 /drivers/usb/host
parentd3eb2de3b2c04879f9d3545226a897976957844d (diff)
MLK-10051-1 usb: host: don't break clear suspend feature if otg fsm is used
Current code just do not do reusme signaling for clear suspend feature if it's a OTG port with b_hnp_enable set, this result in OTG host cannot clear suspend and resume OTG device after system resume from sleep, then host will disconnect the OTG B-device and enumerate it again. To make OTG A-device in host state can do clear feature of suspend like an usual host, and also be compatible legacy OTG device, this patch adds another condition to check if OTG FSM driver is used ,as in OTG FSM driver, we need not do HNP in that case. Acked-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <jun.li@freescale.com> (cherry picked from commit f92731f787ca00ef8cd0ab9d591e4e24d5a40cc4) (cherry picked from commit 92f5f68e853713e1179c0e30c1e84456ba11302e)
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/ehci-hub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c
index 74f62d68f013..6a96628374a3 100644
--- a/drivers/usb/host/ehci-hub.c
+++ b/drivers/usb/host/ehci-hub.c
@@ -935,7 +935,7 @@ int ehci_hub_control(
break;
#ifdef CONFIG_USB_OTG
if ((hcd->self.otg_port == (wIndex + 1))
- && hcd->self.b_hnp_enable) {
+ && hcd->self.b_hnp_enable && !hcd->self.otg_fsm) {
otg_start_hnp(hcd->usb_phy->otg);
break;
}