mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2026-06-25 11:43:20 +02:00
usb: renesas_usbhs: fixup resume method for autonomy mode
commit 5b50d3b526 upstream.
If renesas_usbhs is probed as autonomy mode,
phy reset should be called after power resumed,
and manual cold-plug should be called with slight delay.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
parent
04501c7183
commit
e3c23e02b6
|
|
@ -599,12 +599,12 @@ static int usbhsc_resume(struct device *dev)
|
|||
struct usbhs_priv *priv = dev_get_drvdata(dev);
|
||||
struct platform_device *pdev = usbhs_priv_to_pdev(priv);
|
||||
|
||||
usbhs_platform_call(priv, phy_reset, pdev);
|
||||
|
||||
if (!usbhsc_flags_has(priv, USBHSF_RUNTIME_PWCTRL))
|
||||
usbhsc_power_ctrl(priv, 1);
|
||||
|
||||
usbhsc_hotplug(priv);
|
||||
usbhs_platform_call(priv, phy_reset, pdev);
|
||||
|
||||
usbhsc_drvcllbck_notify_hotplug(pdev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user