dvfs: rockchip: print error when clk is disable
authorXiao Feng <xf@rock-chips.com>
Mon, 27 Jul 2015 06:28:02 +0000 (14:28 +0800)
committerXiao 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

index 6f65f9f4e6f51e51ec01d3b5a699e33809853913..351144dfee0c7ed2142fdcb8a7d4161d4c5ace85 100644 (file)
@@ -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 */