summaryrefslogtreecommitdiffstats
path: root/drivers/usb/class
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-07-01 10:23:24 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-25 20:49:29 +0200
commitd102e78f7035f2d6896ced598122b878afd1c352 (patch)
treeb50fbb8afd9c974efba806543be6d53926fab7e3 /drivers/usb/class
parentRevert "usb: host: Faraday fotg210-hcd driver" (diff)
downloadlinux-d102e78f7035f2d6896ced598122b878afd1c352.tar.xz
linux-d102e78f7035f2d6896ced598122b878afd1c352.zip
usb: class: cdc-acm: be careful with bInterval
bInterval must be on the range 1 - 16, if we want to pass the maximum allowed, we should be passing 16 Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/class')
-rw-r--r--drivers/usb/class/cdc-acm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c
index 9f49bfe4c6f4..3e7560f004f8 100644
--- a/drivers/usb/class/cdc-acm.c
+++ b/drivers/usb/class/cdc-acm.c
@@ -1295,7 +1295,7 @@ skip_countries:
usb_rcvintpipe(usb_dev, epctrl->bEndpointAddress),
acm->ctrl_buffer, ctrlsize, acm_ctrl_irq, acm,
/* works around buggy devices */
- epctrl->bInterval ? epctrl->bInterval : 0xff);
+ epctrl->bInterval ? epctrl->bInterval : 16);
acm->ctrlurb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
acm->ctrlurb->transfer_dma = acm->ctrl_dma;