lkml.org 
[lkml]   [2019]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL 4.19 09/65] usb: dwc3: gadget: synchronize_irq dwc irq in suspend
    Date
    From: Bo He <bo.he@intel.com>

    [ Upstream commit 01c10880d24291a96a4ab0da773e3c5ce4d12da8 ]

    We see dwc3 endpoint stopped by unwanted irq during
    suspend resume test, which is caused dwc3 ep can't be started
    with error "No Resource".

    Here, add synchronize_irq before suspend to sync the
    pending IRQ handlers complete.

    Signed-off-by: Bo He <bo.he@intel.com>
    Signed-off-by: Yu Wang <yu.y.wang@intel.com>
    Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/usb/dwc3/gadget.c | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
    index d8bf9307901e..3baca4d4435a 100644
    --- a/drivers/usb/dwc3/gadget.c
    +++ b/drivers/usb/dwc3/gadget.c
    @@ -3270,6 +3270,8 @@ int dwc3_gadget_suspend(struct dwc3 *dwc)
    dwc3_disconnect_gadget(dwc);
    __dwc3_gadget_stop(dwc);

    + synchronize_irq(dwc->irq_gadget);
    +
    return 0;
    }

    --
    2.19.1
    \
     
     \ /
      Last update: 2019-02-15 03:12    [W:4.180 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site