]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00212992 usb: fix potential bug with fast plug in/out with usb charger
authorPeter Chen <peter.chen@freescale.com>
Mon, 11 Jun 2012 06:31:20 +0000 (14:31 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:47 +0000 (08:34 +0200)
commit3883fce3dd78057e3d3deb3ee35da1546524fe7a
treef9840f8a83642e3efb4b896a205563b79aa2294f
parent5779f222ec110265a9ab90771325b6ef04b7ae69
ENGR00212992 usb: fix potential bug with fast plug in/out with usb charger

- Move imx_usb_vbus_disconnect to work queue, and wait or cancel
charger detect worker when vbus is disconnected if charger detect
worker still hasn't finished.
- Move pull down dp from imx_usb_vbus_disconnect to udc vbus
disconnect interrupt handler, the reason is udc->gadget.speed should
to be updated at that ISR.
- Select POWER_SUPPLY if USB_GADGET_ARC is configured to fix the build
error for manufacture tools firmware's build.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
drivers/usb/gadget/Kconfig
drivers/usb/gadget/arcotg_udc.c
drivers/usb/gadget/imx_usb_charger.c