[PATCH 2/6] usb: xhci-mtk: add missing pm_runtime_dont_use_autosuspend() call

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Tue Sep 15 02:10:20 PDT 2026


On 9/15/26 11:02, Joshua Crofts wrote:
> The disable_pm label in xhci_mtk_probe() and xhci_mtk_remove() both call
> pm_runtime_disable() on error or device teardown, but don't call
> pm_runtime_dont_use_autosuspend(), causing resource leaks.
> 
> Add the missing pm_runtime_dont_use_autosuspend().
> 
> Found using Coccinelle.
> 
> Fixes: 0cbd4b34cda9 ("xhci: mediatek: support MTK xHCI host controller")
> Fixes: 04284eb74e0c ("usb: xhci-mtk: add support runtime PM")
> Cc: <stable at vger.kernel.org>
> Signed-off-by: Joshua Crofts <joshua.crofts1 at gmail.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>




More information about the linux-arm-kernel mailing list