Skip to content

Commit

Permalink
Merge "USB: phy-msm-usb: Disable VBUS OTG during REBOOT"
Browse files Browse the repository at this point in the history
  • Loading branch information
Linux Build Service Account authored and Gerrit - the friendly Code Review server committed Apr 24, 2014
2 parents 0ee9b0d + e446b98 commit b130d41
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/usb/phy/phy-msm-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -5127,6 +5127,14 @@ static int msm_otg_remove(struct platform_device *pdev)
return 0;
}

static void msm_otg_shutdown(struct platform_device *pdev)
{
struct msm_otg *motg = platform_get_drvdata(pdev);

dev_dbg(&pdev->dev, "OTG shutdown\n");
msm_hsusb_vbus_power(motg, 0);
}

#ifdef CONFIG_PM_RUNTIME
static int msm_otg_runtime_idle(struct device *dev)
{
Expand Down Expand Up @@ -5245,6 +5253,7 @@ static struct of_device_id msm_otg_dt_match[] = {
static struct platform_driver msm_otg_driver = {
.probe = msm_otg_probe,
.remove = msm_otg_remove,
.shutdown = msm_otg_shutdown,
.driver = {
.name = DRIVER_NAME,
.owner = THIS_MODULE,
Expand Down

0 comments on commit b130d41

Please sign in to comment.