diff options
author | Robert Baldyga <r.baldyga@samsung.com> | 2014-02-20 07:30:13 +0100 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2014-06-26 12:26:41 +0800 |
commit | 22392a023eee469a7068f1ea77492d5ab9af14f9 (patch) | |
tree | f4bd240d2ea9e7972c00eee167818680a6f19bcc /include/linux | |
parent | ca252c87f19cf1cabb6532ceb3dbe970ad5eb6d6 (diff) |
drivers: usb: udc-core: add deferred bind for gadget driver
This patch adds support for deferred gadget driver bind as a remedy
for situation when UDC drivers and gadget drivers are builded into
the kernel, and gadget driver is loaded as first.
Till now, in that case gadget driver loading failed with "No such device"
and gadget driver didn't start.
Now gadget drivers are added to driver_list and binded later, when UDC
drivers will register in udc-core.
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
(cherry picked from commit 3e84ec6493941e6608dca4a7efec68dee8609111)
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/usb/gadget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index f1b0dca60f12..aab3f10cca3c 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h @@ -832,6 +832,9 @@ struct usb_gadget_driver { /* FIXME support safe rmmod */ struct device_driver driver; + + bool attached; + struct list_head list; }; |