]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00232755 USB: disable clock and abnormal wakeup when remove gadget driver
authormake shi <b15407@freescale.com>
Thu, 10 Jan 2013 05:16:24 +0000 (13:16 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:51 +0000 (08:35 +0200)
commita97d8b7c254ae0d70837869159043523146285e6
tree2da4473b016c969800945999c79ca6271ebb10f6
parenta243f65132a9cf777070f5455fb310ce3e2926bf
ENGR00232755 USB: disable clock and abnormal wakeup when remove gadget driver

- In current bsp, the usb clock mismatch when rmmod gadget class driver. The
  clock should be turn off when gadget class driver unregister.
- There is an abnormal usb wakeup interrupt happen if phy is no power without
  VBUS. If we unplug the usb cable after unregister usb gadget driver, it is
  difficult to handle the unexpected usb wakeup interrupt. SO we must call
  dr_discharge_line()  to make sure no abnormal usb wakeup interrupt happen in
  usb unregister gadget class driver.

Signed-off-by: make shi <b15407@freescale.com>
drivers/usb/gadget/arcotg_udc.c