]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 00:23:27 +0000 (17:23 -0700)
commitab01faf3405b5912002e6f2a156caec5536d33c7
tree9483f6b6e964901235b1860e2b292ccfdb9a89d8
parent73f1ce7b972cf7c96ce82d38563742adbd102d04
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