]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: chipidea: udc: Consolidate the call of disconnect
authorPeter Chen <peter.chen@freescale.com>
Tue, 17 Sep 2013 04:37:19 +0000 (12:37 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:38 +0000 (10:06 +0200)
commit1ce27a8b1138947124b38c4cdd96e418cf8d08d3
treebaad369bd5b573a13333a762f4d1c5d49b4f7493
parentf8edf4f1756dc0edddd265d03247f34800b20906
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/udc.c