usb: core: add support for USB_REQ_SET_ISOCH_DELAY
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 14 Dec 2017 07:50:39 +0000 (09:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Dec 2017 19:45:43 +0000 (20:45 +0100)
commit886ee36e7205a7b850e2e5c2298a479f581f9b3b
tree0c52649fb1d4fb87550c006c000b8fb1b037da16
parent66222f0d4b0ffba0bae2a6a785dc6eaa67cf532e
usb: core: add support for USB_REQ_SET_ISOCH_DELAY

USB SS and SSP hubs provide wHubDelay values on their hub descriptor
which we should inform the USB Device about.

The USB Specification 3.0 explains, on section 9.4.11, how to
calculate the value and how to issue the request. Note that a
USB_REQ_SET_ISOCH_DELAY is valid on all device states (Default,
Address, Configured), we just *chose* to issue it from Address state
right after successfully fetching the USB Device Descriptor.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c
drivers/usb/core/message.c
drivers/usb/core/usb.h
include/linux/usb.h