MLK-13851-1 usb: chipidea: otg: delete the workaround code
authorPeter Chen <peter.chen@nxp.com>
Fri, 3 Feb 2017 03:16:21 +0000 (11:16 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:58:24 +0000 (14:58 -0500)
After commit 49670184289e ("usb: chipidea: otg: change workqueue
ci_otg as freezable"), we have fixed the bug that ID removed
wakeup (ID: 0->1) will lock up system resume, we delete the
workaround code in this commit.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/otg.c

index 40489b7..42c7369 100644 (file)
@@ -2,6 +2,7 @@
  * otg.c - ChipIdea USB IP core OTG driver
  *
  * Copyright (C) 2013-2016 Freescale Semiconductor, Inc.
+ * Copyright 2017 NXP
  *
  * Author: Peter Chen
  *
@@ -214,12 +215,6 @@ void ci_handle_id_switch(struct ci_hdrc *ci)
                dev_dbg(ci->dev, "switching from %s to %s\n",
                        ci_role(ci)->name, ci->roles[role]->name);
 
-               while (ci_hdrc_host_has_device(ci)) {
-                       enable_irq(ci->irq);
-                       usleep_range(10000, 15000);
-                       disable_irq_nosync(ci->irq);
-               }
-
                ci_role_stop(ci);
 
                if (role == CI_ROLE_GADGET &&