lkml.org 
[lkml]   [2009]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[044/136] USB: fix cdc-acm regression in open
    2.6.31-stable review patch.  If anyone has any objections, please let us know.

    ------------------
    From: Oliver Neukum <oliver@neukum.org>

    commit 7af25b4b34a2439020d78da765a3bed0ff73f25c upstream.

    cdc-acm needs to set a flag during open to tell the
    tty layer that the device is initialized

    Signed-off-by: Oliver Neukum <oliver@neukum.org>
    Cc: Marcel Holtmann <marcel@holtmann.org>
    Cc: Paul Martin <pm@debian.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

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

    --- a/drivers/usb/class/cdc-acm.c
    +++ b/drivers/usb/class/cdc-acm.c
    @@ -59,6 +59,7 @@
    #include <linux/init.h>
    #include <linux/slab.h>
    #include <linux/tty.h>
    +#include <linux/serial.h>
    #include <linux/tty_driver.h>
    #include <linux/tty_flip.h>
    #include <linux/module.h>
    @@ -609,6 +610,7 @@ static int acm_tty_open(struct tty_struc
    acm->throttle = 0;

    tasklet_schedule(&acm->urb_task);
    + set_bit(ASYNCB_INITIALIZED, &acm->port.flags);
    rv = tty_port_block_til_ready(&acm->port, tty, filp);
    done:
    mutex_unlock(&acm->mutex);



    \
     
     \ /
      Last update: 2009-10-02 04:15    [W:0.029 / U:0.096 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site