diff options
author | Peter Chen <peter.chen@freescale.com> | 2010-12-20 17:08:54 +0800 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2010-12-20 17:08:54 +0800 |
commit | e6677bce0eccc4810df90e11ba9cf7791918b153 (patch) | |
tree | ae8b94f9a71847b18d13995368701bbff434855c | |
parent | 20655bab3804a9509cabf8f416c1aee25ae48a41 (diff) |
ENGR00137175 usb-otg: DO NOT read usb registers when usb is in low power mode
Should not read usb registers when usb is in low power mode,
or it will cause usb system hang or getting the wrong registers value
Signed-off-by: Peter Chen <peter.chen@freescale.com>
-rw-r--r-- | drivers/usb/otg/fsl_otg.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/usb/otg/fsl_otg.c b/drivers/usb/otg/fsl_otg.c index e32d7cab828e..f2614615d1f6 100644 --- a/drivers/usb/otg/fsl_otg.c +++ b/drivers/usb/otg/fsl_otg.c @@ -648,25 +648,6 @@ static int fsl_otg_set_peripheral(struct otg_transceiver *otg_p, otg_statemachine(&otg_dev->fsm); return 0; } -#ifdef DEBUG - /* - * debug the initial state of the ID pin when only - * the gadget driver is loaded and no cable is connected. - * sometimes, we get an ID irq right - * after the udc driver's otg_get_transceiver() call - * that indicates that IDpin=0, which means a Mini-A - * connector is attached. not good. - */ - DBG("before: fsm.id ID pin=%d", otg_dev->fsm.id); - otg_dev->fsm.id = (otg_dev->dr_mem_map->otgsc & OTGSC_STS_USB_ID) ? - 1 : 0; - DBG("after: fsm.id ID pin=%d", otg_dev->fsm.id); - /*if (!otg_dev->fsm.id) { - printk("OTG Control = 0x%x\n", - isp1504_read(ISP1504_OTGCTL, - &otg_dev->dr_mem_map->ulpiview)); - } */ -#endif otg_p->gadget = gadget; otg_p->gadget->is_a_peripheral = !otg_dev->fsm.id; |