diff options
Diffstat (limited to 'drivers/usb/phy/phy-msm-usb.c')
-rw-r--r-- | drivers/usb/phy/phy-msm-usb.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-usb.c index 749fbf41fb6f..d08f33435e96 100644 --- a/drivers/usb/phy/phy-msm-usb.c +++ b/drivers/usb/phy/phy-msm-usb.c | |||
@@ -514,13 +514,13 @@ static int msm_otg_suspend(struct msm_otg *motg) | |||
514 | motg->pdata->otg_control == OTG_PMIC_CONTROL) | 514 | motg->pdata->otg_control == OTG_PMIC_CONTROL) |
515 | writel(readl(USB_PHY_CTRL) | PHY_RETEN, USB_PHY_CTRL); | 515 | writel(readl(USB_PHY_CTRL) | PHY_RETEN, USB_PHY_CTRL); |
516 | 516 | ||
517 | clk_disable(motg->pclk); | 517 | clk_disable_unprepare(motg->pclk); |
518 | clk_disable(motg->clk); | 518 | clk_disable_unprepare(motg->clk); |
519 | if (motg->core_clk) | 519 | if (motg->core_clk) |
520 | clk_disable(motg->core_clk); | 520 | clk_disable_unprepare(motg->core_clk); |
521 | 521 | ||
522 | if (!IS_ERR(motg->pclk_src)) | 522 | if (!IS_ERR(motg->pclk_src)) |
523 | clk_disable(motg->pclk_src); | 523 | clk_disable_unprepare(motg->pclk_src); |
524 | 524 | ||
525 | if (motg->pdata->phy_type == SNPS_28NM_INTEGRATED_PHY && | 525 | if (motg->pdata->phy_type == SNPS_28NM_INTEGRATED_PHY && |
526 | motg->pdata->otg_control == OTG_PMIC_CONTROL) { | 526 | motg->pdata->otg_control == OTG_PMIC_CONTROL) { |
@@ -552,12 +552,12 @@ static int msm_otg_resume(struct msm_otg *motg) | |||
552 | return 0; | 552 | return 0; |
553 | 553 | ||
554 | if (!IS_ERR(motg->pclk_src)) | 554 | if (!IS_ERR(motg->pclk_src)) |
555 | clk_enable(motg->pclk_src); | 555 | clk_prepare_enable(motg->pclk_src); |
556 | 556 | ||
557 | clk_enable(motg->pclk); | 557 | clk_prepare_enable(motg->pclk); |
558 | clk_enable(motg->clk); | 558 | clk_prepare_enable(motg->clk); |
559 | if (motg->core_clk) | 559 | if (motg->core_clk) |
560 | clk_enable(motg->core_clk); | 560 | clk_prepare_enable(motg->core_clk); |
561 | 561 | ||
562 | if (motg->pdata->phy_type == SNPS_28NM_INTEGRATED_PHY && | 562 | if (motg->pdata->phy_type == SNPS_28NM_INTEGRATED_PHY && |
563 | motg->pdata->otg_control == OTG_PMIC_CONTROL) { | 563 | motg->pdata->otg_control == OTG_PMIC_CONTROL) { |
@@ -1468,7 +1468,7 @@ static int __init msm_otg_probe(struct platform_device *pdev) | |||
1468 | if (IS_ERR(motg->pclk_src)) | 1468 | if (IS_ERR(motg->pclk_src)) |
1469 | goto put_clk; | 1469 | goto put_clk; |
1470 | clk_set_rate(motg->pclk_src, INT_MAX); | 1470 | clk_set_rate(motg->pclk_src, INT_MAX); |
1471 | clk_enable(motg->pclk_src); | 1471 | clk_prepare_enable(motg->pclk_src); |
1472 | } else | 1472 | } else |
1473 | motg->pclk_src = ERR_PTR(-ENOENT); | 1473 | motg->pclk_src = ERR_PTR(-ENOENT); |
1474 | 1474 | ||
@@ -1511,8 +1511,8 @@ static int __init msm_otg_probe(struct platform_device *pdev) | |||
1511 | goto free_regs; | 1511 | goto free_regs; |
1512 | } | 1512 | } |
1513 | 1513 | ||
1514 | clk_enable(motg->clk); | 1514 | clk_prepare_enable(motg->clk); |
1515 | clk_enable(motg->pclk); | 1515 | clk_prepare_enable(motg->pclk); |
1516 | 1516 | ||
1517 | ret = msm_hsusb_init_vddcx(motg, 1); | 1517 | ret = msm_hsusb_init_vddcx(motg, 1); |
1518 | if (ret) { | 1518 | if (ret) { |
@@ -1532,7 +1532,7 @@ static int __init msm_otg_probe(struct platform_device *pdev) | |||
1532 | } | 1532 | } |
1533 | 1533 | ||
1534 | if (motg->core_clk) | 1534 | if (motg->core_clk) |
1535 | clk_enable(motg->core_clk); | 1535 | clk_prepare_enable(motg->core_clk); |
1536 | 1536 | ||
1537 | writel(0, USB_USBINTR); | 1537 | writel(0, USB_USBINTR); |
1538 | writel(0, USB_OTGSC); | 1538 | writel(0, USB_OTGSC); |
@@ -1579,8 +1579,8 @@ static int __init msm_otg_probe(struct platform_device *pdev) | |||
1579 | free_irq: | 1579 | free_irq: |
1580 | free_irq(motg->irq, motg); | 1580 | free_irq(motg->irq, motg); |
1581 | disable_clks: | 1581 | disable_clks: |
1582 | clk_disable(motg->pclk); | 1582 | clk_disable_unprepare(motg->pclk); |
1583 | clk_disable(motg->clk); | 1583 | clk_disable_unprepare(motg->clk); |
1584 | ldo_exit: | 1584 | ldo_exit: |
1585 | msm_hsusb_ldo_init(motg, 0); | 1585 | msm_hsusb_ldo_init(motg, 0); |
1586 | vddcx_exit: | 1586 | vddcx_exit: |
@@ -1593,7 +1593,7 @@ put_core_clk: | |||
1593 | clk_put(motg->pclk); | 1593 | clk_put(motg->pclk); |
1594 | put_pclk_src: | 1594 | put_pclk_src: |
1595 | if (!IS_ERR(motg->pclk_src)) { | 1595 | if (!IS_ERR(motg->pclk_src)) { |
1596 | clk_disable(motg->pclk_src); | 1596 | clk_disable_unprepare(motg->pclk_src); |
1597 | clk_put(motg->pclk_src); | 1597 | clk_put(motg->pclk_src); |
1598 | } | 1598 | } |
1599 | put_clk: | 1599 | put_clk: |
@@ -1643,12 +1643,12 @@ static int msm_otg_remove(struct platform_device *pdev) | |||
1643 | if (cnt >= PHY_SUSPEND_TIMEOUT_USEC) | 1643 | if (cnt >= PHY_SUSPEND_TIMEOUT_USEC) |
1644 | dev_err(phy->dev, "Unable to suspend PHY\n"); | 1644 | dev_err(phy->dev, "Unable to suspend PHY\n"); |
1645 | 1645 | ||
1646 | clk_disable(motg->pclk); | 1646 | clk_disable_unprepare(motg->pclk); |
1647 | clk_disable(motg->clk); | 1647 | clk_disable_unprepare(motg->clk); |
1648 | if (motg->core_clk) | 1648 | if (motg->core_clk) |
1649 | clk_disable(motg->core_clk); | 1649 | clk_disable_unprepare(motg->core_clk); |
1650 | if (!IS_ERR(motg->pclk_src)) { | 1650 | if (!IS_ERR(motg->pclk_src)) { |
1651 | clk_disable(motg->pclk_src); | 1651 | clk_disable_unprepare(motg->pclk_src); |
1652 | clk_put(motg->pclk_src); | 1652 | clk_put(motg->pclk_src); |
1653 | } | 1653 | } |
1654 | msm_hsusb_ldo_init(motg, 0); | 1654 | msm_hsusb_ldo_init(motg, 0); |