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>
* otg.c - ChipIdea USB IP core OTG driver
*
* Copyright (C) 2013-2016 Freescale Semiconductor, Inc.
+ * Copyright 2017 NXP
*
* Author: Peter Chen
*
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 &&