lkml.org 
[lkml]   [2013]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 148/150] usb: musb: core: fix failure path
    Date
    3.8-stable review patch.  If anyone has any objections, please let me know.

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

    From: Ming Lei <ming.lei@canonical.com>

    commit 681d1e8761ca773967bce9bd1bb2896f07279551 upstream.

    In the fail1~fail5 failure path, pm_runtime_disable() should
    be called to avoid 'Unbalanced pm_runtime_enable' error in
    next probe() which may be triggered by defer probe or next
    'modprobe musb_hdrc'.

    Cc: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
    Signed-off-by: Ming Lei <ming.lei@canonical.com>
    Signed-off-by: Felipe Balbi <balbi@ti.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/usb/musb/musb_core.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/drivers/usb/musb/musb_core.c
    +++ b/drivers/usb/musb/musb_core.c
    @@ -1993,6 +1993,7 @@ fail2:
    musb_platform_exit(musb);

    fail1:
    + pm_runtime_disable(musb->controller);
    dev_err(musb->controller,
    "musb_init_controller failed with status %d\n", status);




    \
     
     \ /
      Last update: 2013-02-27 02:21    [W:4.019 / U:0.068 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site