]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: udc-core: call ->disconnect() when soft disconnecting
authorFelipe Balbi <balbi@ti.com>
Thu, 9 Oct 2014 15:12:24 +0000 (10:12 -0500)
committerFelipe Balbi <balbi@ti.com>
Mon, 3 Nov 2014 16:00:58 +0000 (10:00 -0600)
commit4fdd67c55ac061480145e830a46798bec2612a8c
treeaa20f857f8f489ce33adbde322f27321a6cc4375
parent0d49943bf43f8a697e59ba63e877581ca35efa94
usb: gadget: udc-core: call ->disconnect() when soft disconnecting

when disconnecting from host using our soft_connect
sysfs interface, also let the gadget driver know about
it by calling the gadget driver's ->disconnect()
method.

No problems have been found while not calling ->disconnect()
so far, it's just good convention.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/udc-core.c