USB: visor: fix initialisation of Treo/Kyocera devices
authorJohan Hovold <jhovold@gmail.com>
Mon, 27 May 2013 12:44:38 +0000 (14:44 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Jun 2013 01:16:50 +0000 (02:16 +0100)
commit 420021a395ce38b7ab2cceb52dee4038be7d8fa3 upstream.

Fix regression introduced by commit 214916f2e ("USB: visor: reimplement
using generic framework") which broke initialisation of Treo/Kyocera
devices that re-mapped bulk-in endpoints.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[bwh: Backported to 3.2: only copy bulk_in_size as the other new fields
 don't exist here]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/serial/visor.c

index 189a894..80a6ff6 100644 (file)
@@ -599,6 +599,7 @@ static int treo_attach(struct usb_serial *serial)
                dest->read_urb = src->read_urb;                         \
                dest->bulk_in_endpointAddress = src->bulk_in_endpointAddress;\
                dest->bulk_in_buffer = src->bulk_in_buffer;             \
+               dest->bulk_in_size = src->bulk_in_size;                 \
                dest->interrupt_in_urb = src->interrupt_in_urb;         \
                dest->interrupt_in_urb->context = dest;                 \
                dest->interrupt_in_endpointAddress = \