]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: add usb_gadget_activate/deactivate functions
authorRobert Baldyga <r.baldyga@samsung.com>
Mon, 4 May 2015 12:55:11 +0000 (14:55 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 29 Jul 2015 14:59:19 +0000 (09:59 -0500)
commit256c6464abcdaa450985f4394e7707b587a9d548
treef1828acbdf9614ca0de4b8e736487c1c9467161d
parent58278b7f729caec7ce374d6e14ffa9bb41eacf60
usb: gadget: add usb_gadget_activate/deactivate functions

These functions allows to deactivate gadget to make it not visible to
host and make it active again when gadget driver is finally ready.

They are needed to fix usb_function_activate() and usb_function_deactivate()
functions which currently are not working as usb_gadget_connect() is
called immediately after function bind regardless to previous calls of
usb_gadget_disconnect() function.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
include/linux/usb/gadget.h