mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
usb: renesas_usbhs: Fix power-off ordering on unbind
Move the usbhsc_power_ctrl() call to before hardware_exit() and
reset_control_assert() in usbhs_remove(), so the PHY is powered off
while priv->phy is still valid, rather than after hardware_exit()
has already cleared it.
Fixes: eb9ac77983 ("usb: renesas_usbhs: Fix synchronous external abort on unbind")
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://patch.msgid.link/20260702073832.175047-1-biju.das.jz@bp.renesas.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2fe9a76eb3
commit
589b9e6f96
|
|
@ -813,9 +813,6 @@ static void usbhs_remove(struct platform_device *pdev)
|
|||
|
||||
flush_delayed_work(&priv->notify_hotplug_work);
|
||||
|
||||
usbhs_platform_call(priv, hardware_exit, pdev);
|
||||
reset_control_assert(priv->rsts);
|
||||
|
||||
/*
|
||||
* Explicitly free the IRQ to ensure the interrupt handler is
|
||||
* disabled and synchronized before freeing resources.
|
||||
|
|
@ -832,6 +829,9 @@ static void usbhs_remove(struct platform_device *pdev)
|
|||
if (!usbhs_get_dparam(priv, runtime_pwctrl))
|
||||
usbhsc_power_ctrl(priv, 0);
|
||||
|
||||
usbhs_platform_call(priv, hardware_exit, pdev);
|
||||
reset_control_assert(priv->rsts);
|
||||
|
||||
usbhsc_clk_put(priv);
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user