Re: [PATCH v4] usb: host: xhci-mtk: avoid runtime suspend when removing hcd
From: Mathias Nyman
Date: Thu Jun 04 2020 - 05:11:47 EST
On 4.6.2020 6.01, Macpaul Lin wrote:
> When runtime suspend was enabled, runtime suspend might happen
> when xhci is removing hcd. This might cause kernel panic when hcd
> has been freed but runtime pm suspend related handle need to
> reference it.
>
> Signed-off-by: Macpaul Lin <macpaul.lin@xxxxxxxxxxxx>
> Reviewed-by: Chunfeng Yun <chunfeng.yun@xxxxxxxxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx
> ---
> Changes for v3:
> - Replace better sequence for disabling the pm_runtime suspend.
> Changes for v4:
> - Thanks for Sergei's review, typo in commit description has been corrected.
>
Thanks, added to queue
-Mathias