]> 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>
Mon, 16 Jun 2014 15:44:50 +0000 (17:44 +0200)
commitd5c5575b42fdb632481e76efd97e0e2aec8a41ca
tree702bccf6e1897fb6a385d59519b26eac22d90340
parent76b08965991fe9cc27858c57011677ea6995a448
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