diff options
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/gadget.h | 3 | ||||
-rw-r--r-- | include/linux/usb/musb.h | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index 457651bf45b0..fefe8b06a63d 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h | |||
@@ -1034,6 +1034,8 @@ static inline int usb_gadget_activate(struct usb_gadget *gadget) | |||
1034 | * @udc_name: A name of UDC this driver should be bound to. If udc_name is NULL, | 1034 | * @udc_name: A name of UDC this driver should be bound to. If udc_name is NULL, |
1035 | * this driver will be bound to any available UDC. | 1035 | * this driver will be bound to any available UDC. |
1036 | * @pending: UDC core private data used for deferred probe of this driver. | 1036 | * @pending: UDC core private data used for deferred probe of this driver. |
1037 | * @match_existing_only: If udc is not found, return an error and don't add this | ||
1038 | * gadget driver to list of pending driver | ||
1037 | * | 1039 | * |
1038 | * Devices are disabled till a gadget driver successfully bind()s, which | 1040 | * Devices are disabled till a gadget driver successfully bind()s, which |
1039 | * means the driver will handle setup() requests needed to enumerate (and | 1041 | * means the driver will handle setup() requests needed to enumerate (and |
@@ -1097,6 +1099,7 @@ struct usb_gadget_driver { | |||
1097 | 1099 | ||
1098 | char *udc_name; | 1100 | char *udc_name; |
1099 | struct list_head pending; | 1101 | struct list_head pending; |
1102 | unsigned match_existing_only:1; | ||
1100 | }; | 1103 | }; |
1101 | 1104 | ||
1102 | 1105 | ||
diff --git a/include/linux/usb/musb.h b/include/linux/usb/musb.h index 0b3da40a525e..d315c8907869 100644 --- a/include/linux/usb/musb.h +++ b/include/linux/usb/musb.h | |||
@@ -142,10 +142,11 @@ enum musb_vbus_id_status { | |||
142 | }; | 142 | }; |
143 | 143 | ||
144 | #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) | 144 | #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) |
145 | void musb_mailbox(enum musb_vbus_id_status status); | 145 | int musb_mailbox(enum musb_vbus_id_status status); |
146 | #else | 146 | #else |
147 | static inline void musb_mailbox(enum musb_vbus_id_status status) | 147 | static inline int musb_mailbox(enum musb_vbus_id_status status) |
148 | { | 148 | { |
149 | return 0; | ||
149 | } | 150 | } |
150 | #endif | 151 | #endif |
151 | 152 | ||