projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26ea8b8
)
dvfs: rockchip: print error when clk is disable
author
Xiao Feng
<xf@rock-chips.com>
Mon, 27 Jul 2015 06:28:02 +0000
(14:28 +0800)
committer
Xiao Feng
<xf@rock-chips.com>
Mon, 27 Jul 2015 06:55:11 +0000
(14:55 +0800)
Signed-off-by: Xiao Feng <xf@rock-chips.com>
arch/arm/mach-rockchip/dvfs.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rockchip/dvfs.c
b/arch/arm/mach-rockchip/dvfs.c
index 6f65f9f4e6f51e51ec01d3b5a699e33809853913..351144dfee0c7ed2142fdcb8a7d4161d4c5ace85 100644
(file)
--- a/
arch/arm/mach-rockchip/dvfs.c
+++ b/
arch/arm/mach-rockchip/dvfs.c
@@
-1671,8
+1671,11
@@
static int dvfs_target(struct dvfs_node *clk_dvfs_node, unsigned long rate)
if (!clk)
return -EINVAL;
- if (!clk_dvfs_node->enable_count)
+ if (!clk_dvfs_node->enable_count) {
+ DVFS_ERR("%s: %s is disable, set rate error\n",
+ __func__, clk_dvfs_node->name);
return 0;
+ }
if (clk_dvfs_node->vd->volt_set_flag == DVFS_SET_VOLT_FAILURE) {
/* It means the last time set voltage error */