]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00277805-2 usb: chipidea: udc: Consolidate the call of disconnect
authorPeter Chen <peter.chen@freescale.com>
Wed, 10 Jul 2013 09:21:23 +0000 (17:21 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:25 +0000 (10:06 +0200)
commitead45e4b3b2093d666dea00e9b66dab17ac26c1f
treee6df5ed83168e9a78ab3b6397d135da1dbec6fac
parent7c0de76ec791372257569bcf7ff7e6a6f5c3a559
ENGR00277805-2 usb: chipidea: udc: Consolidate the call of disconnect

The udc-core will call gadget's driver->disconnect, so we should avoid
calling gadget's disconnect again at ci_udc_stop in case the gadget's
unbind free some structs which is still used at gadget's disconnect.

Tested-by: Marek Vasut <marex@denx.de>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
drivers/usb/chipidea/udc.c