diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-23 08:33:09 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-23 08:33:09 -0400 |
| commit | 6d23ee9caa6790aea047f9aca7f3c03cb8d96eb6 (patch) | |
| tree | c2552531d33b5b4aa333015b5225be5c1e100d63 /include/linux/usb | |
| parent | 6555ad13a01952c16485c82a52ad1f3e07e34b3a (diff) | |
| parent | aaeab02ddcc830e31c33cdb72a3c117b2d499ae2 (diff) | |
Merge tag 'usb-for-v4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-testing
Felipe writes:
usb: changes for v4.17 merge window
Quite a lot happened in this cycle, with a total of 95 non-merge
commits. The most interesting parts are listed below:
Synopsys has been adding better support for USB 3.1 to dwc3. The same
series also sets g_mass_storage's max speed to SSP.
Roger Quadros (TI) added support for dual-role using the OTG block
available in some dwc3 implementations, this makes sure that AM437x
can swap roles in runtime.
We have a new SoC supported in dwc3 now - Amlogic Meson GX - thanks to
the work of Martin Blumenstingl.
We also have a ton of changes in dwc2 (51% of all changes, in
fact). The most interesting part there is the support for
Hibernation (a Synopsys PM feature).
Apart from these, we have our regular set of non-critical fixes all
over the place.
Diffstat (limited to 'include/linux/usb')
| -rw-r--r-- | include/linux/usb/composite.h | 3 | ||||
| -rw-r--r-- | include/linux/usb/gadget.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index cef0e44601f8..4b6b9283fa7b 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h | |||
| @@ -54,6 +54,9 @@ | |||
| 54 | /* big enough to hold our biggest descriptor */ | 54 | /* big enough to hold our biggest descriptor */ |
| 55 | #define USB_COMP_EP0_BUFSIZ 1024 | 55 | #define USB_COMP_EP0_BUFSIZ 1024 |
| 56 | 56 | ||
| 57 | /* OS feature descriptor length <= 4kB */ | ||
| 58 | #define USB_COMP_EP0_OS_DESC_BUFSIZ 4096 | ||
| 59 | |||
| 57 | #define USB_MS_TO_HS_INTERVAL(x) (ilog2((x * 1000 / 125)) + 1) | 60 | #define USB_MS_TO_HS_INTERVAL(x) (ilog2((x * 1000 / 125)) + 1) |
| 58 | struct usb_configuration; | 61 | struct usb_configuration; |
| 59 | 62 | ||
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index 66a5cff7ee14..e3424234b23a 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h | |||
| @@ -129,6 +129,7 @@ struct usb_ep_ops { | |||
| 129 | int (*enable) (struct usb_ep *ep, | 129 | int (*enable) (struct usb_ep *ep, |
| 130 | const struct usb_endpoint_descriptor *desc); | 130 | const struct usb_endpoint_descriptor *desc); |
| 131 | int (*disable) (struct usb_ep *ep); | 131 | int (*disable) (struct usb_ep *ep); |
| 132 | void (*dispose) (struct usb_ep *ep); | ||
| 132 | 133 | ||
| 133 | struct usb_request *(*alloc_request) (struct usb_ep *ep, | 134 | struct usb_request *(*alloc_request) (struct usb_ep *ep, |
| 134 | gfp_t gfp_flags); | 135 | gfp_t gfp_flags); |
