mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-16 19:07:40 +07:00
USB: correct intervals for SS+
SS+ also expresses intervals in units of 125ms. Testing must be for SS or faster, not SS exactly. Signed-off-by: Oliver neukum <oneukum@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
dd80b54b18
commit
fca504f605
@ -1569,7 +1569,7 @@ static inline void usb_fill_bulk_urb(struct urb *urb,
|
|||||||
* Initializes a interrupt urb with the proper information needed to submit
|
* Initializes a interrupt urb with the proper information needed to submit
|
||||||
* it to a device.
|
* it to a device.
|
||||||
*
|
*
|
||||||
* Note that High Speed and SuperSpeed interrupt endpoints use a logarithmic
|
* Note that High Speed and SuperSpeed(+) interrupt endpoints use a logarithmic
|
||||||
* encoding of the endpoint interval, and express polling intervals in
|
* encoding of the endpoint interval, and express polling intervals in
|
||||||
* microframes (eight per millisecond) rather than in frames (one per
|
* microframes (eight per millisecond) rather than in frames (one per
|
||||||
* millisecond).
|
* millisecond).
|
||||||
@ -1595,7 +1595,7 @@ static inline void usb_fill_int_urb(struct urb *urb,
|
|||||||
urb->complete = complete_fn;
|
urb->complete = complete_fn;
|
||||||
urb->context = context;
|
urb->context = context;
|
||||||
|
|
||||||
if (dev->speed == USB_SPEED_HIGH || dev->speed == USB_SPEED_SUPER) {
|
if (dev->speed == USB_SPEED_HIGH || dev->speed >= USB_SPEED_SUPER) {
|
||||||
/* make sure interval is within allowed range */
|
/* make sure interval is within allowed range */
|
||||||
interval = clamp(interval, 1, 16);
|
interval = clamp(interval, 1, 16);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user