Linux Kernels

usb: dwc3: exynos: use clk_prepare_enable and clk_disable_unprepare

This change “usb: dwc3: exynos: use clk_prepare_enable and clk_disable_unprepare” (commit ddb5147) in Linux kernel is authored by Vivek Gautam <gautam.vivek [at] samsung.com> on Thu Mar 14 16:14:58 2013 +0530.

Description of "usb: dwc3: exynos: use clk_prepare_enable and clk_disable_unprepare"

The change “usb: dwc3: exynos: use clk_prepare_enable and clk_disable_unprepare” introduces changes as follows.

usb: dwc3: exynos: use clk_prepare_enable and clk_disable_unprepare

Convert clk_enable/clk_disable to clk_prepare_enable/clk_disable_unprepare
calls as required by common clock framework.

Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
CC: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

Linux kernel releases containing commit ddb5147

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "usb: dwc3: exynos: use clk_prepare_enable and clk_disable_unprepare"

There are 6 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/usb/dwc3/dwc3-exynos.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
 
diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c
index f77ec75e2d1e..1ea7bd8af6ae 100644
--- a/drivers/usb/dwc3/dwc3-exynos.c
+++ b/drivers/usb/dwc3/dwc3-exynos.c
@@ -138,7 +138,7 @@ static int dwc3_exynos_probe(struct platform_device *pdev)
 	exynos->dev	= dev;
 	exynos->clk	= clk;
 
-	clk_enable(exynos->clk);
+	clk_prepare_enable(exynos->clk);
 
 	if (node) {
 		ret = of_platform_populate(node, NULL, NULL, dev);
@@ -155,7 +155,7 @@ static int dwc3_exynos_probe(struct platform_device *pdev)
 	return 0;
 
 err2:
-	clk_disable(clk);
+	clk_disable_unprepare(clk);
 err1:
 	return ret;
 }
@@ -168,7 +168,7 @@ static int dwc3_exynos_remove(struct platform_device *pdev)
 	platform_device_unregister(exynos->usb3_phy);
 	device_for_each_child(&pdev->dev, NULL, dwc3_exynos_remove_child);
 
-	clk_disable(exynos->clk);
+	clk_disable_unprepare(exynos->clk);
 
 	return 0;
 }

The commit for this change in Linux stable tree is ddb5147 (patch).

Last modified: 2020/01/11 06:51