lkml.org 
[lkml]   [2008]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[06/12] USB: gadget: queue usb USB_CDC_GET_ENCAPSULATED_RESPONSE message
    2.6.24-stable review patch.  If anyone has any objections, please let us
    know.

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

    From: Jan Altenberg <jan.altenberg@linutronix.de>

    backport of 41566bcf35a8b23ce4715dadb5acfd1098c1d3e4

    commit 0cf4f2de0a0f4100795f38ef894d4910678c74f8 introduced a bug, which
    prevents sending an USB_CDC_GET_ENCAPSULATED_RESPONSE message. This
    breaks the RNDIS initialization (especially / only Windoze machines
    dislike this behavior...).

    Signed-off-by: Benedikt Spranger <b.spranger@linutronix.de>
    Signed-off-by: Jan Altenberg <jan.altenberg@linutronix.de>
    Acked-by: David Brownell <dbrownell@users.sourceforge.net>
    Cc: Vernon Sauder <vernoninhand@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/usb/gadget/ether.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/drivers/usb/gadget/ether.c
    +++ b/drivers/usb/gadget/ether.c
    @@ -1561,6 +1561,7 @@ done_set_intf:
    memcpy(req->buf, buf, n);
    req->complete = rndis_response_complete;
    rndis_free_response(dev->rndis_config, buf);
    + value = n;
    }
    /* else stalls ... spec says to avoid that */
    }
    --


    \
     
     \ /
      Last update: 2008-04-29 20:55    [W:0.020 / U:31.412 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site