projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0146390
)
USB: cdc-acm: fix pipe type of write endpoint
author
Ming Lei
<
[email protected]
>
Tue, 16 Oct 2012 13:21:21 +0000
(21:21 +0800)
committer
Greg Kroah-Hartman
<
[email protected]
>
Wed, 17 Oct 2012 20:41:34 +0000
(13:41 -0700)
If the write endpoint is interrupt type, usb_sndintpipe() should
be passed to usb_fill_int_urb() instead of usb_sndbulkpipe().
Cc: Oliver Neukum <
[email protected]
>
Signed-off-by: Ming Lei <
[email protected]
>
Cc: stable <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/class/cdc-acm.c
patch
|
blob
|
history
diff --git
a/drivers/usb/class/cdc-acm.c
b/drivers/usb/class/cdc-acm.c
index 981f2132d1283c44234f4fa79466c4d11241c94e..572f4e7bd3ff2cd5c6524235eb83b93bd1ded461 100644
(file)
--- a/
drivers/usb/class/cdc-acm.c
+++ b/
drivers/usb/class/cdc-acm.c
@@
-1233,7
+1233,7
@@
made_compressed_probe:
if (usb_endpoint_xfer_int(epwrite))
usb_fill_int_urb(snd->urb, usb_dev,
- usb_snd
bulk
pipe(usb_dev, epwrite->bEndpointAddress),
+ usb_snd
int
pipe(usb_dev, epwrite->bEndpointAddress),
NULL, acm->writesize, acm_write_bulk, snd, epwrite->bInterval);
else
usb_fill_bulk_urb(snd->urb, usb_dev,