mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
dvfs: rockchip: print error when clk is disable
Signed-off-by: Xiao Feng <xf@rock-chips.com>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user