usb: dwc_otg: fix some issues of dwc_otg_310
authorlyz <lyz@rock-chips.com>
Thu, 15 Jan 2015 05:13:03 +0000 (13:13 +0800)
committerlyz <lyz@rock-chips.com>
Thu, 15 Jan 2015 05:29:39 +0000 (13:29 +0800)
commit2ac8753a2a059cb9667cda20bc4c2ecad23ab745
treeb1121dcc8252e5c19be5ae1cd043e6584f10a094
parent491715787bf39a20d744bf46d700d005733b64c5
usb: dwc_otg: fix some issues of dwc_otg_310

1.disable host interrupts when id changed so that no more host
  interrupt will happen after otg disconnect
2.hold hcd->lock in hcd_reinit function to protect qtd list
3.recheck USB_STATUS_ID in vbus detect thread make sure it indeed
  in device mode
4.fix some null pointer dereference
5.otg disconnect threshold set to 575mv in case of disconnect
  interrupt lose
drivers/usb/dwc_otg_310/dwc_otg_cil_intr.c
drivers/usb/dwc_otg_310/dwc_otg_hcd.c
drivers/usb/dwc_otg_310/dwc_otg_hcd_linux.c
drivers/usb/dwc_otg_310/dwc_otg_hcd_queue.c
drivers/usb/dwc_otg_310/dwc_otg_pcd_linux.c
drivers/usb/dwc_otg_310/usbdev_rk3126.c