lkml.org 
[lkml]   [2012]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH 1/6 v2] usb/gadget/pch_udc: Fix disconnect issue
    From
    Hi Sergei

    2012/1/12 Sergei Shtylyov <sshtylyov@mvista.com>:
    >> CAUSE:
    >> When the driver calls dev->driver->disconnect(), it is not calling
    >> spinlock().
    >
    >
    >   spin_unlock(), you mean?

    It means that there is not the following sentence in the previous source.
    I think this is a cause of system freeze.
    > +               spin_unlock(&dev->lock);
    > +               spin_lock(&dev->lock);

    I correct myself below.
    CAUSE:
    The driver calls dev->driver->disconnect() without calling
    spin_unlock(&dev->lock).

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

    \
     
     \ /
      Last update: 2012-01-13 05:15    [W:0.020 / U:21.816 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site