Skip to content

Commit

Permalink
usb: renesas_usbhs: fixup resume method for autonomy mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kuninori Morimoto authored and Greg Kroah-Hartman committed Aug 10, 2012
1 parent e7ae64c commit 5b50d3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/usb/renesas_usbhs/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,12 +603,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;
}
Expand Down

0 comments on commit 5b50d3b

Please sign in to comment.