diff options
Diffstat (limited to 'drivers/usb/core/config.c')
-rw-r--r-- | drivers/usb/core/config.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/usb/core/config.c b/drivers/usb/core/config.c index ac30a051ad71..325cbc9c35d8 100644 --- a/drivers/usb/core/config.c +++ b/drivers/usb/core/config.c | |||
@@ -246,6 +246,16 @@ static int usb_parse_endpoint(struct device *ddev, int cfgno, int inum, | |||
246 | 246 | ||
247 | /* | 247 | /* |
248 | * Adjust bInterval for quirked devices. | 248 | * Adjust bInterval for quirked devices. |
249 | */ | ||
250 | /* | ||
251 | * This quirk fixes bIntervals reported in ms. | ||
252 | */ | ||
253 | if (to_usb_device(ddev)->quirks & | ||
254 | USB_QUIRK_LINEAR_FRAME_INTR_BINTERVAL) { | ||
255 | n = clamp(fls(d->bInterval) + 3, i, j); | ||
256 | i = j = n; | ||
257 | } | ||
258 | /* | ||
249 | * This quirk fixes bIntervals reported in | 259 | * This quirk fixes bIntervals reported in |
250 | * linear microframes. | 260 | * linear microframes. |
251 | */ | 261 | */ |