]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00234722 USB: fix Kernel dump issue after USB driver loadable
authormake shi <b15407@freescale.com>
Thu, 29 Nov 2012 08:28:25 +0000 (16:28 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:47 +0000 (08:35 +0200)
commit652b4c27b1488cf35f1a3367d6648a5850371a2a
tree7322dd28b1df62620666624eefecf958a0be6009
parent04fd104d08038f9f115163f6592a768d84c0809c
ENGR00234722 USB: fix Kernel dump issue after USB driver loadable

- It is better to disable otgsc and wake up interrupt to avoid an
  abnormal interrupt happen during USB driver being removed.
- If the USB host is already at low power mode, only need turn on
  the clock, no need turn off the clock.
- Need discharge dp and dm during USB driver being removed ,in order
  to avoid a wakeup interrupt happen. And if the USB otg is in host
  mode, we should clear discharge dp and dm in fsl_otg_set_host()
  during system boot up.

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