提交 d102e78f 编写于 作者: F Felipe Balbi 提交者: Greg Kroah-Hartman

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: NFelipe Balbi <balbi@ti.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 5447e0a6
...@@ -1295,7 +1295,7 @@ static int acm_probe(struct usb_interface *intf, ...@@ -1295,7 +1295,7 @@ static int acm_probe(struct usb_interface *intf,
usb_rcvintpipe(usb_dev, epctrl->bEndpointAddress), usb_rcvintpipe(usb_dev, epctrl->bEndpointAddress),
acm->ctrl_buffer, ctrlsize, acm_ctrl_irq, acm, acm->ctrl_buffer, ctrlsize, acm_ctrl_irq, acm,
/* works around buggy devices */ /* 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_flags |= URB_NO_TRANSFER_DMA_MAP;
acm->ctrlurb->transfer_dma = acm->ctrl_dma; acm->ctrlurb->transfer_dma = acm->ctrl_dma;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册