[ 11/31] USB: cdc-acm: fix pipe type of write endpoint

2012-10-25 Thread Greg Kroah-Hartman
3.0-stable review patch.  If anyone has any objections, please let me know.

--

From: Ming Lei 

commit c5211187f7ff8e8dbff4ebf7c011ac4c0ffe319c upstream.

If the write endpoint is interrupt type, usb_sndintpipe() should
be passed to usb_fill_int_urb() instead of usb_sndbulkpipe().

Signed-off-by: Ming Lei 
Cc: Oliver Neukum 
Signed-off-by: Greg Kroah-Hartman 

---
 drivers/usb/class/cdc-acm.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/usb/class/cdc-acm.c
+++ b/drivers/usb/class/cdc-acm.c
@@ -1172,7 +1172,7 @@ made_compressed_probe:
 
if (usb_endpoint_xfer_int(epwrite))
usb_fill_int_urb(snd->urb, usb_dev,
-   usb_sndbulkpipe(usb_dev, 
epwrite->bEndpointAddress),
+   usb_sndintpipe(usb_dev, 
epwrite->bEndpointAddress),
NULL, acm->writesize, acm_write_bulk, snd, 
epwrite->bInterval);
else
usb_fill_bulk_urb(snd->urb, usb_dev,


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[ 11/31] USB: cdc-acm: fix pipe type of write endpoint

2012-10-25 Thread Greg Kroah-Hartman
3.0-stable review patch.  If anyone has any objections, please let me know.

--

From: Ming Lei ming@canonical.com

commit c5211187f7ff8e8dbff4ebf7c011ac4c0ffe319c upstream.

If the write endpoint is interrupt type, usb_sndintpipe() should
be passed to usb_fill_int_urb() instead of usb_sndbulkpipe().

Signed-off-by: Ming Lei ming@canonical.com
Cc: Oliver Neukum oneu...@suse.de
Signed-off-by: Greg Kroah-Hartman gre...@linuxfoundation.org

---
 drivers/usb/class/cdc-acm.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/usb/class/cdc-acm.c
+++ b/drivers/usb/class/cdc-acm.c
@@ -1172,7 +1172,7 @@ made_compressed_probe:
 
if (usb_endpoint_xfer_int(epwrite))
usb_fill_int_urb(snd-urb, usb_dev,
-   usb_sndbulkpipe(usb_dev, 
epwrite-bEndpointAddress),
+   usb_sndintpipe(usb_dev, 
epwrite-bEndpointAddress),
NULL, acm-writesize, acm_write_bulk, snd, 
epwrite-bInterval);
else
usb_fill_bulk_urb(snd-urb, usb_dev,


--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/