mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 21:30:53 +07:00
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>
This commit is contained in:
parent
5447e0a652
commit
d102e78f70
@ -1295,7 +1295,7 @@ static int acm_probe(struct usb_interface *intf,
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user