lkml.org 
[lkml]   [2013]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[078/141] USB: visor: fix initialisation of Treo/Kyocera devices
    3.6.11.6 stable review patch.
    If anyone has any objections, please let me know.

    ------------------

    From: Johan Hovold <jhovold@gmail.com>

    [ Upstream commit 420021a395ce38b7ab2cceb52dee4038be7d8fa3 ]

    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.

    Cc: stable@vger.kernel.org
    Signed-off-by: Johan Hovold <jhovold@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
    ---
    drivers/usb/serial/visor.c | 8 ++++++++
    1 file changed, 8 insertions(+)

    diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c
    index f253c91..583a98a 100644
    --- a/drivers/usb/serial/visor.c
    +++ b/drivers/usb/serial/visor.c
    @@ -570,9 +570,17 @@ static int treo_attach(struct usb_serial *serial)
    */
    #define COPY_PORT(dest, src) \
    do { \
    + int i; \
    + \
    + for (i = 0; i < ARRAY_SIZE(src->read_urbs); ++i) { \
    + dest->read_urbs[i] = src->read_urbs[i]; \
    + dest->read_urbs[i]->context = dest; \
    + dest->bulk_in_buffers[i] = src->bulk_in_buffers[i]; \
    + } \
    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_endpointAddress = \
    src->interrupt_in_endpointAddress;\
    --
    1.7.10.4



    \
     
     \ /
      Last update: 2013-07-04 01:01    [W:2.745 / U:0.392 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site