[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YZJR5p2Zu39sdkap@kroah.com>
Date: Mon, 15 Nov 2021 13:26:14 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Johan Hovold <johan@...nel.org>
Cc: stable@...r.kernel.org, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org, Peter Chen <peter.chen@...nel.org>
Subject: Re: [PATCH stable-4.9] USB: chipidea: fix interrupt deadlock
On Mon, Nov 15, 2021 at 09:00:43AM +0100, Johan Hovold wrote:
> commit 9aaa81c3366e8393a62374e3a1c67c69edc07b8a upstream.
>
> Chipidea core was calling the interrupt handler from non-IRQ context
> with interrupts enabled, something which can lead to a deadlock if
> there's an actual interrupt trying to take a lock that's already held
> (e.g. the controller lock in udc_irq()).
>
> Add a wrapper that can be used to fake interrupts instead of calling the
> handler directly.
>
> Fixes: 3ecb3e09b042 ("usb: chipidea: Use extcon framework for VBUS and ID detect")
> Fixes: 876d4e1e8298 ("usb: chipidea: core: add wakeup support for extcon")
> Cc: Peter Chen <peter.chen@...nel.org>
> Cc: stable@...r.kernel.org # 4.4
> Signed-off-by: Johan Hovold <johan@...nel.org>
> Link: https://lore.kernel.org/r/20211021083447.20078-1-johan@kernel.org
> Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> [ johan: backport to 4.9; adjust context ]
> Signed-off-by: Johan Hovold <johan@...nel.org>
> ---
>
> This one should apply to 4.4 as well.
All now queued up, thanks.
greg k-h
Powered by blists - more mailing lists